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


##########
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:
   Thanks @jojochuang for the feedback!
   I've split the resource setup into two try blocks and extracted the 
KeyManager selection to make it easier to read.



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