You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/06/17 09:42:54 UTC
[GitHub] [spark] Ngone51 opened a new pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Ngone51 opened a new pull request #28849:
URL: https://github.com/apache/spark/pull/28849
<!--
Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
4. Be sure to keep the PR description updated to reflect all changes.
5. Please write your PR title to summarize what this PR proposes.
6. If possible, provide a concise example to reproduce the issue for a faster review.
7. If you want to add a new configuration, please read the guideline first for naming configurations in
'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
-->
### What changes were proposed in this pull request?
<!--
Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue.
If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
2. If you fix some SQL features, you can provide some references of other DBMSes.
3. If there is design documentation, please add the link.
4. If there is a discussion in the mailing list, please add the link.
-->
This PR changes the test to get an active executorId and set it as preferred location instead of setting a fixed preferred location.
### Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
-->
The test is flaky. After checking the [log](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/124086/artifact/core/), I find the root cause is:
Two test cases from different test suites got submitted at the same time because of concurrent execution. In this particular case, the two test cases (from DistributedSuite and BarrierTaskContextSuite) both launch under local-cluster mode. The two applications are submitted at the SAME time so they have the same applications(app-20200615210132-0000). Thus, when the cluster of BarrierTaskContextSuite is launching executors, it failed to create the directory for the executor 0, because the path (/home/jenkins/workspace/work/app-app-20200615210132-0000/0) has been used by the cluster of DistributedSuite. Therefore, it has to launch executor 1 and 2 instead, that lead to non of the tasks can get preferred locality thus they got scheduled together and lead to the test failure.
### Does this PR introduce _any_ user-facing change?
<!--
Note that it means *any* user-facing change including all aspects such as the documentation fix.
If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
If no, write 'No'.
-->
No.
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why it was difficult to add.
-->
The test can not be reproduced locally. We can only know it's been fixed when it's no longer flaky on Jenkins.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645273217
**[Test build #124163 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/124163/testReport)** for PR 28849 at commit [`773de15`](https://github.com/apache/spark/commit/773de156586b7dc4cd750fe715068d26319585c1).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645273937
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan closed pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
cloud-fan closed pull request #28849:
URL: https://github.com/apache/spark/pull/28849
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645348876
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] Ngone51 commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
Ngone51 commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645400674
thanks all! I've opened a separate PR for branch-2.4: https://github.com/apache/spark/pull/28851
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] dongjoon-hyun commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645293185
Thank you, @Ngone51 !
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] Ngone51 commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
Ngone51 commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645270897
cc @sarutak @dongjoon-hyun @jiangxb1987 @cloud-fan
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645273937
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645348876
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan edited a comment on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
cloud-fan edited a comment on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645373856
thanks, merging to master/3.0!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] sarutak commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
sarutak commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645299362
LGTM. Thanks @Ngone51 !
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645273217
**[Test build #124163 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/124163/testReport)** for PR 28849 at commit [`773de15`](https://github.com/apache/spark/commit/773de156586b7dc4cd750fe715068d26319585c1).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645373856
thanks, merging to master/3.0/2.4!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #28849: [SPARK-32000][CORE][TESTS] Fix the flaky test for partially launched task in barrier-mode
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #28849:
URL: https://github.com/apache/spark/pull/28849#issuecomment-645347796
**[Test build #124163 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/124163/testReport)** for PR 28849 at commit [`773de15`](https://github.com/apache/spark/commit/773de156586b7dc4cd750fe715068d26319585c1).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org