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
[SPARK-32250][CORE][TEST] Fix flaky MasterSuite.test(SPARK-27510...) in Github Actions #29408
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test build #127323 has finished for PR 29408 at commit
|
Ngone51
changed the title
[WIP][SPARK-32250][CORE] Check whether the MasterSuite.test(SPARK-27510...) is still flaky in Github Action
[SPARK-32250][CORE][TEST] Fix flaky MasterSuite.test(SPARK-27510...) in Github Actions
Aug 12, 2020
The test has passed in Github Actions. I'm going to close and reopen the PR to re-trigger the test. |
Test build #127374 has finished for PR 29408 at commit
|
HyukjinKwon
approved these changes
Aug 12, 2020
Thanks @Ngone51. |
Merged to master and branch-3.0. |
HyukjinKwon
pushed a commit
that referenced
this pull request
Aug 12, 2020
…) in Github Actions ### What changes were proposed in this pull request? Set more dispatcher threads for the flaky test. ### Why are the changes needed? When running test on Github Actions machine, the available processors in JVM is only 2, while on Jenkins it's 32. For this specific test, 2 available processors, which also decides the number of threads in Dispatcher, are not enough to consume the messages. In the worst situation, `MockExecutorLaunchFailWorker` would occupy these 2 threads for handling messages `LaunchDriver`, `LaunchExecutor` at the same time but leave no thread for the driver to handle the message `RegisteredApplication`. At the end, it results in a deadlock situation and causes the test failure. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? We can check whether the test is still flaky in Github Actions after this fix. Closes #29408 from Ngone51/spark-32250. Authored-by: yi.wu <yi.wu@databricks.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit c6ea983) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
Thank you, Hyukjin! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Set more dispatcher threads for the flaky test.
Why are the changes needed?
When running test on Github Actions machine, the available processors in JVM is only 2, while on Jenkins it's 32. For this specific test, 2 available processors, which also decides the number of threads in Dispatcher, are not enough to consume the messages. In the worst situation,
MockExecutorLaunchFailWorker
would occupy these 2 threads for handling messagesLaunchDriver
,LaunchExecutor
at the same time but leave no thread for the driver to handle the messageRegisteredApplication
. At the end, it results in a deadlock situation and causes the test failure.Does this PR introduce any user-facing change?
No.
How was this patch tested?
We can check whether the test is still flaky in Github Actions after this fix.