Skip to content

Commit 27b2aaa

Browse files
tanvipenumudyMaksim Myskov
authored andcommitted
HDDS-10475. Refine audit logging for bucket creation (apache#6366)
(cherry picked from commit a8dd1c2)
1 parent 42e2de4 commit 27b2aaa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers

hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketInfo.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,17 @@ public Map<String, String> toAuditMap() {
370370
auditMap.put(OzoneConsts.USED_BYTES, String.valueOf(this.usedBytes));
371371
auditMap.put(OzoneConsts.USED_NAMESPACE,
372372
String.valueOf(this.usedNamespace));
373+
auditMap.put(OzoneConsts.OWNER, this.owner);
374+
auditMap.put(OzoneConsts.REPLICATION_TYPE,
375+
(this.defaultReplicationConfig != null) ?
376+
String.valueOf(this.defaultReplicationConfig.getType()) : null);
377+
auditMap.put(OzoneConsts.REPLICATION_CONFIG,
378+
(this.defaultReplicationConfig != null) ?
379+
this.defaultReplicationConfig.getReplicationConfig()
380+
.getReplication() : null);
381+
auditMap.put(OzoneConsts.QUOTA_IN_BYTES, String.valueOf(this.quotaInBytes));
382+
auditMap.put(OzoneConsts.QUOTA_IN_NAMESPACE,
383+
String.valueOf(this.quotaInNamespace));
373384
return auditMap;
374385
}
375386

0 commit comments

Comments
 (0)