jojochuang commented on code in PR #11310:
URL: https://github.com/apache/ozone/pull/11310#discussion_r4163340385


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/service/TestSnapshotDeletingServiceIntegrationTest.java:
##########
@@ -763,9 +774,16 @@ public void 
testSnapshotDeletingServiceWaitsForKeyDeletingService(boolean kdsRun
       kds.shutdown();
       KeyDeletingService.KeyDeletingTask task = kds.new 
KeyDeletingTask(snap3Id);
 
-      CompletableFuture.supplyAsync(() -> {
-        try (MockedConstruction<ReclaimableKeyFilter> mockedReclaimableFilter 
= getMockedReclaimableKeyFilter(
-            volume, bucket, kdsWaitStarted, sdsLockWaitStarted, 
sdsLockAcquired, kdsFinished, keyFilter)) {
+      CompletableFuture<?> kdsFuture = CompletableFuture.supplyAsync(() -> {
+        try (UncheckedAutoCloseableSupplier<OmSnapshot> currentSnapshot = 
kdsRunningOnAOS ? null :

Review Comment:
   it's a fine attempt but it's not helping. I am looking for something like 
this:
   
   ```
   try (UncheckedAutoCloseableSupplier<OmSnapshot> currentSnapshot =
            openCurrentSnapshot(kdsRunningOnAOS, volume, bucket);
        ReclaimableKeyFilter keyFilter =
            createReclaimableKeyFilter(kdsRunningOnAOS, snapInfo, 
currentSnapshot)) {
   ```



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