Shilun Fan created HDDS-15292:
---------------------------------

             Summary: Reduce Thread.sleep usage in DiskBalancer tests
                 Key: HDDS-15292
                 URL: https://issues.apache.org/jira/browse/HDDS-15292
             Project: Apache Ozone
          Issue Type: Improvement
          Components: Ozone Datanode
            Reporter: Shilun Fan
            Assignee: Shilun Fan


Some DiskBalancer tests use fixed Thread.sleep calls to wait for asynchronous 
state changes or delayed cleanup.

Examples:
- TestDiskBalancerTask
- TestDiskBalancerWithConcurrentBackgroundTasks

This Jira proposes replacing Thread.sleep usages in DiskBalancer tests with 
condition-based waiting, such as GenericTestUtils.waitFor, so the tests can 
proceed as soon as the expected condition is met and fail with a timeout if the 
condition is not reached.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to