Skip to content

HDDS-13936. Replace Thread.sleep with waitFor in TestContainerBalancerOperations#9302

Merged
adoroszlai merged 2 commits intoapache:masterfrom
rich7420:HDDS-13936
Nov 18, 2025
Merged

HDDS-13936. Replace Thread.sleep with waitFor in TestContainerBalancerOperations#9302
adoroszlai merged 2 commits intoapache:masterfrom
rich7420:HDDS-13936

Conversation

@rich7420
Copy link
Contributor

What changes were proposed in this pull request?

This PR removed the TODO comment as it's now completed.
This PR modified TestContainerBalancerOperations.java to replace Thread.sleep(20000) with GenericTestUtils.waitFor().

What is the link to the Apache JIRA

Please create an issue in ASF JIRA before opening a pull request, and you need to set the title of the pull
request which starts with the corresponding JIRA issue number. (e.g. HDDS-XXXX. Fix a typo in YYY.)

HDDS-13936

How was this patch tested?

https://github.com/rich7420/ozone/actions/runs/19402653019

@rich7420 rich7420 changed the title HDDS-13936: Replace Thread.sleep with proper waiting mechanism for Container Balancer HDDS-13936. Replace Thread.sleep with proper waiting mechanism for Container Balancer Nov 16, 2025
Copy link
Contributor

@sarvekshayr sarvekshayr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rich7420. Overall LGTM.

Just a minor comment below -

@rich7420
Copy link
Contributor Author

@sarvekshayr thanks for the feedback!

@adoroszlai adoroszlai changed the title HDDS-13936. Replace Thread.sleep with proper waiting mechanism for Container Balancer HDDS-13936. Replace Thread.sleep with waitFor in TestContainerBalancerOperations Nov 17, 2025
Copy link
Contributor

@chungen0126 chungen0126 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM

@adoroszlai adoroszlai merged commit 2b74301 into apache:master Nov 18, 2025
30 checks passed
@adoroszlai
Copy link
Contributor

Thanks @rich7420 for the patch, @chungen0126, @sarvekshayr for the review.

@rich7420
Copy link
Contributor Author

Thanks @sarvekshayr , @chungen0126 and @adoroszlai !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants