jojochuang commented on code in PR #9380:
URL: https://github.com/apache/ozone/pull/9380#discussion_r2566383612
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/defrag/SnapshotDefragService.java:
##########
@@ -613,10 +613,10 @@ private boolean
checkAndDefragSnapshot(SnapshotChainManager chainManager, UUID s
checkpointMetadataManager = null;
// Switch the snapshot DB location to the new version.
previousVersion = atomicSwitchSnapshotDB(snapshotId,
checkpointLocation);
+ omSnapshotManager.deleteSnapshotCheckpointDirectories(snapshotId,
previousVersion);
Review Comment:
Question -- if deleteSnapshotCheckpointDirectories() here needs to be
protected inside a snapshot content lock, do we need to have snapshot content
lock too in OMSnapshotPurgeResponse? deleteSnapshotCheckpointDirectories() is
invoked there too.
--
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]