Skip to content

[SPARK-14860][Tests]Create a new Waiter in reset to bypass an issue of ScalaTest's Waiter.wait#12623

Closed
zsxwing wants to merge 1 commit intoapache:masterfrom
zsxwing:flaky-test
Closed

[SPARK-14860][Tests]Create a new Waiter in reset to bypass an issue of ScalaTest's Waiter.wait#12623
zsxwing wants to merge 1 commit intoapache:masterfrom
zsxwing:flaky-test

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Apr 22, 2016

What changes were proposed in this pull request?

This PR updates QueryStatusCollector.reset to create Waiter instead of calling await(1 milliseconds) to bypass an ScalaTest's issue that Waiter.await may block forever.

How was this patch tested?

I created a local stress test to call codes in test("event ordering") 100 times. It cannot pass without this patch.

@zsxwing
Copy link
Member Author

zsxwing commented Apr 22, 2016

cc @tdas

@SparkQA
Copy link

SparkQA commented Apr 22, 2016

Test build #56743 has finished for PR 12623 at commit 77fa9f4.

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

@zsxwing
Copy link
Member Author

zsxwing commented May 2, 2016

ping @tdas

@tdas
Copy link
Contributor

tdas commented May 3, 2016

LGTM. Merging to master and 2.0. Thanks!

@asfgit asfgit closed this in b545d75 May 3, 2016
asfgit pushed a commit that referenced this pull request May 3, 2016
…of ScalaTest's Waiter.wait

## What changes were proposed in this pull request?

This PR updates `QueryStatusCollector.reset` to create Waiter instead of calling `await(1 milliseconds)` to bypass an ScalaTest's issue that Waiter.await may block forever.

## How was this patch tested?

I created a local stress test to call codes in `test("event ordering")` 100 times. It cannot pass without this patch.

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #12623 from zsxwing/flaky-test.

(cherry picked from commit b545d75)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
@zsxwing zsxwing deleted the flaky-test branch May 3, 2016 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants