smengcl commented on code in PR #9324:
URL: https://github.com/apache/ozone/pull/9324#discussion_r2558894536
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/defrag/SnapshotDefragService.java:
##########
@@ -86,24 +124,47 @@ public class SnapshotDefragService extends
BackgroundService
private final AtomicLong snapshotsDefraggedCount;
private final AtomicBoolean running;
- private final MultiSnapshotLocks snapshotIdLocks;
+ private final MultiSnapshotLocks snapshotContentLocks;
private final OzoneConfiguration conf;
private final BootstrapStateHandler.Lock lock = new
BootstrapStateHandler.Lock();
+ private final String tmpDefragDir;
+ private final OmSnapshotManager omSnapshotManager;
+ private final OmSnapshotLocalDataManager snapshotLocalDataManager;
+ private final List<UUID> lockIds;
+ private final CompositeDeltaDiffComputer deltaDiffComputer;
+ private final Path differTmpDir;
public SnapshotDefragService(long interval, TimeUnit unit, long
serviceTimeout,
- OzoneManager ozoneManager, OzoneConfiguration configuration) {
+ OzoneManager ozoneManager, OzoneConfiguration configuration) throws
IOException {
super("SnapshotDefragService", interval, unit, DEFRAG_CORE_POOL_SIZE,
Review Comment:
```suggestion
super(SnapshotDefragService.class.getSimpleName(), interval, unit,
DEFRAG_CORE_POOL_SIZE,
```
--
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]