smengcl commented on code in PR #8554:
URL: https://github.com/apache/ozone/pull/8554#discussion_r2129087496
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/service/TestDirectoryDeletingServiceWithFSO.java:
##########
@@ -576,7 +574,7 @@ public void
testAOSKeyDeletingWithSnapshotCreateParallelExecution()
DirectoryDeletingService dirDeletingService =
cluster.getOzoneManager().getKeyManager().getDirDeletingService();
// Suspend KeyDeletingService
dirDeletingService.suspend();
- GenericTestUtils.waitFor(() -> !dirDeletingService.isRunningOnAOS(), 1000,
10000);
+ Thread.sleep(1000);
Review Comment:
Should this line be reverted? `sleep()` alone is brittle. `isRunningOnAOS()`
can still be used to check if a run is finished it seems.
--
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]