sarvekshayr opened a new pull request, #8858:
URL: https://github.com/apache/ozone/pull/8858

   ## What changes were proposed in this pull request?
   Currently, we do not audit each entry for the background deletion. For 
debugging and auditing purposes. it would be useful to maintain a background 
deletion service audit log.
   The background deletion service audit log now tracks DIRECTORY_DELETION, 
KEY_DELETION, SNAPSHOT_DELETION, SCMBLOCK_DELETION and BLOCK_DELETION. 
   
   ## What is the link to the Apache JIRA
   [HDDS-13370](https://issues.apache.org/jira/browse/HDDS-13370)
   
   ## How was this patch tested?
   Tested on a docker cluster
   OM
   ```
   2025-07-24 04:58:28,906 | INFO  | BackgroundDeletionAudit | user= | ip= | 
op=DIRECTORY_DELETION {directoriesDeleted=1, subdirectoriesMoved=0, 
subFilesMoved=1} | ret=SUCCESS |  
   2025-07-24 04:59:28,942 | INFO  | BackgroundDeletionAudit | user= | ip= | 
op=KEY_DELETION {renamedKeysPurged=0, keysDeleted=1} | ret=SUCCESS |  
   2025-07-24 06:10:29,013 | INFO  | BackgroundDeletionAudit | user= | ip= | 
op=SNAPSHOT_DELETION {snapshotsPurged=1, snapshotsDBKeys=[/vol1/bucket1/snap1], 
snapshotsUpdated={}} | ret=SUCCESS |  
   ```
   SCM
   ```
   2025-07-24 04:46:28,944 | INFO  | BackgroundDeletionAudit | user=hadoop | 
ip=172.18.0.4 | op=SCMBLOCK_DELETION 
{KeyBlockToDelete=[BlockGroup[groupID='/vol1/bucket1/.Trash/hadoop/250724044400/hfbt6jhdgo/1/-9223372036854774015',
 blockIDs=[conID: 1 locID: 115816896921600001 bcsId: 0 replicaIndex: null]], 
BlockGroup[groupID='/vol1/bucket1/.Trash/hadoop/250724044400/hfbt6jhdgo/2/-9223372036854772735',
 blockIDs=[conID: 1 locID: 115816896921600004 bcsId: 0 replicaIndex: null]], 
BlockGroup[groupID='/vol1/bucket1/.Trash/hadoop/250724044400/hfbt6jhdgo/3/-9223372036854773247',
 blockIDs=[conID: 1 locID: 115816896921600006 bcsId: 0 replicaIndex: null]], 
BlockGroup[groupID='/vol1/bucket1/.Trash/hadoop/250724044400/hfbt6jhdgo/4/-9223372036854773503',
 blockIDs=[conID: 1 locID: 115816896921600005 bcsId: 0 replicaIndex: null]]], 
NumOfKeyBlocksToDelete=4} | ret=SUCCESS |
   ```
   DN
   ```
   2025-07-24 05:12:51,442 | INFO  | BackgroundDeletionAudit | user=null | 
ip=null | op=BLOCK_DELETION {blocksToDelete=6, containerID=1, txnID=2} | 
ret=SUCCESS |  
   2025-07-24 05:12:51,443 | INFO  | BackgroundDeletionAudit | user=null | 
ip=null | op=BLOCK_DELETION {blocksToDelete=4, containerID=1, txnID=1} | 
ret=SUCCESS | 
   ```


-- 
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]

Reply via email to