Skip to content
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
wants to merge 5 commits into from

Conversation

Ngone51
Copy link
Member

@Ngone51 Ngone51 commented Aug 11, 2020

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.

@SparkQA
Copy link

SparkQA commented Aug 11, 2020

Test build #127323 has finished for PR 29408 at commit 4e1d8ec.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@Ngone51 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
@Ngone51
Copy link
Member Author

Ngone51 commented Aug 12, 2020

The test has passed in Github Actions. I'm going to close and reopen the PR to re-trigger the test.

@Ngone51 Ngone51 closed this Aug 12, 2020
@Ngone51 Ngone51 reopened this Aug 12, 2020
@SparkQA
Copy link

SparkQA commented Aug 12, 2020

Test build #127374 has finished for PR 29408 at commit 0e76b56.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@Ngone51
Copy link
Member Author

Ngone51 commented Aug 12, 2020

@HyukjinKwon
Copy link
Member

Thanks @Ngone51.

@HyukjinKwon
Copy link
Member

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>
@Ngone51
Copy link
Member Author

Ngone51 commented Aug 12, 2020

Thank you, Hyukjin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants