adoroszlai opened a new pull request, #6338:
URL: https://github.com/apache/ozone/pull/6338
## What changes were proposed in this pull request?
Audit log for key creation is missing information about EC replication (see
`replicationFactor=ZERO`).
```
2024-03-05 18:53:20,425 | INFO | OMAudit | user=hadoop | ip=172.18.0.5 |
op=COMMIT_KEY {volume=smxvvmay, bucket=cgszxdst, key=PUTFILE2.txt._COPYING_,
dataSize=17289, replicationType=EC, replicationFactor=ZERO} | ret=SUCCESS |
```
https://issues.apache.org/jira/browse/HDDS-10472
## How was this patch tested?
Verified OM audit log for EC key creation in acceptance tests:
```
2024-03-06 10:31:50,226 | INFO | OMAudit | user=dlfknslnfslf |
ip=172.18.0.2 | op=ALLOCATE_KEY {volume=s3v, bucket=erasure, key=testfile,
dataSize=29, replicationType=EC, replicationConfig=rs-3-2-1048576} |
ret=SUCCESS |
2024-03-06 10:31:51,434 | INFO | OMAudit | user=dlfknslnfslf |
ip=172.18.0.2 | op=COMMIT_KEY {volume=s3v, bucket=erasure, key=testfile,
dataSize=29, replicationType=EC, replicationConfig=rs-3-2-1048576} |
ret=SUCCESS |
```
Log for Ratis keys is unchanged:
```
2024-03-06 10:33:02,190 | INFO | OMAudit | user=dlfknslnfslf |
ip=172.18.0.2 | op=ALLOCATE_KEY {volume=s3v, bucket=destbucket-94098,
key=ozone-test-5769387323/copyobject/key=value/f1, dataSize=29,
replicationType=NONE} | ret=SUCCESS |
2024-03-06 10:33:02,498 | INFO | OMAudit | user=dlfknslnfslf |
ip=172.18.0.2 | op=COMMIT_KEY {volume=s3v, bucket=destbucket-94098,
key=ozone-test-5769387323/copyobject/key=value/f1, dataSize=29,
replicationType=RATIS, replicationFactor=THREE} | ret=SUCCESS |
```
https://github.com/adoroszlai/ozone/actions/runs/8170275505
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]