-
Notifications
You must be signed in to change notification settings - Fork 9k
YARN-11816. Fix flaky test: TestCapacitySchedulerMultiNodes#testCheckRequestOnceForUnsatisfiedRequest #7659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
…RequestOnceForUnsatisfiedRequest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses the flaky behavior in TestCapacitySchedulerMultiNodes by modifying the scheduling cycle latency checks from a one-time assert to a wait condition, thereby reducing test intermittency.
- Remove unused assertTrue import.
- Replace a fixed assert with a wait-for loop that verifies average scheduling cycle latency is below 10ms.
- Add logging and elapsed time collection for debugging purposes.
🎊 +1 overall
This message was automatically generated. |
@slfan1989 Could you please help to review this PR? Thanks. |
@TaoYang526 Thanks for the contribution! LGTM. |
Description of PR
Please refer to YARN-11816 for details.
How was this patch tested?
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?