Skip to content

Conversation

@tianshizz
Copy link
Contributor

@tianshizz tianshizz commented May 3, 2020

What changes were proposed in this pull request?

Allow customized timeouts for runSparkSubmit, which will make flaky tests more likely to pass by using a larger timeout value.

I was able to reproduce the test failure on my laptop, which took 1.5 - 2 minutes to finish the test. After increasing the timeout, the test now can pass locally.

Why are the changes needed?

This allows slow tests to use a larger timeout, so they are more likely to succeed.

Does this PR introduce any user-facing change?

No

How was this patch tested?

The test was able to pass on my local env after the change.

@HyukjinKwon
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented May 3, 2020

Test build #122222 has finished for PR 28438 at commit 5276146.

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

@tianshizz
Copy link
Contributor Author

cc @gatorsmile @dbtsai

@maropu
Copy link
Member

maropu commented May 4, 2020

Thanks for the work, @tianshizz . btw, have you checked a root cause of the flaky failure is just a timeout, e.g., from jenkins logs? If that's true, the fix looks fine.

@tianshizz
Copy link
Contributor Author

@maropu I'm not able to see the jenkins log, but I was able to reproduce it on my own laptop, which is quite slow... It needs 1.5 - 2 minutes to finish that test. After increasing the timeout to 3 minutes, it can pass.

@maropu
Copy link
Member

maropu commented May 4, 2020

retest this please

@maropu
Copy link
Member

maropu commented May 4, 2020

Could you put the info It needs 1.5 - 2 minutes to finish that test in the PR description, too?

@SparkQA
Copy link

SparkQA commented May 4, 2020

Test build #122238 has finished for PR 28438 at commit 5276146.

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

HyukjinKwon pushed a commit that referenced this pull request May 4, 2020
…rated code on driver should not embed platform-specific constant

### What changes were proposed in this pull request?

Allow customized timeouts for `runSparkSubmit`, which will make flaky tests more likely to pass by using a larger timeout value.

I was able to reproduce the test failure on my laptop, which took 1.5 - 2 minutes to finish the test. After increasing the timeout, the test now can pass locally.

### Why are the changes needed?

This allows slow tests to use a larger timeout, so they are more likely to succeed.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

The test was able to pass on my local env after the change.

Closes #28438 from tianshizz/SPARK-31267.

Authored-by: Tianshi Zhu <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit a222644)
Signed-off-by: HyukjinKwon <[email protected]>
@HyukjinKwon
Copy link
Member

Merged to master and branch-3.0.

huaxingao pushed a commit to huaxingao/spark that referenced this pull request May 4, 2020
…rated code on driver should not embed platform-specific constant

### What changes were proposed in this pull request?

Allow customized timeouts for `runSparkSubmit`, which will make flaky tests more likely to pass by using a larger timeout value.

I was able to reproduce the test failure on my laptop, which took 1.5 - 2 minutes to finish the test. After increasing the timeout, the test now can pass locally.

### Why are the changes needed?

This allows slow tests to use a larger timeout, so they are more likely to succeed.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

The test was able to pass on my local env after the change.

Closes apache#28438 from tianshizz/SPARK-31267.

Authored-by: Tianshi Zhu <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants