Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Jun 1, 2015

Some places forget to call assert to check the return value of AsynchronousListenerBus.waitUntilEmpty. Instead of adding assert in these places, I think it's better to make AsynchronousListenerBus.waitUntilEmpty throw TimeoutException.

… timeout

TimeoutException is a more explicit failure. In addition, the caller doesn't need to call `assert` now.
@zsxwing
Copy link
Member Author

zsxwing commented Jun 1, 2015

@andrewor14 could you take a look?

@SparkQA
Copy link

SparkQA commented Jun 1, 2015

Test build #33884 has finished for PR 6550 at commit 607674a.

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

@squito
Copy link
Contributor

squito commented Jun 1, 2015

lgtm

@andrewor14
Copy link
Contributor

master 1.4 thanks

asfgit pushed a commit that referenced this pull request Jun 3, 2015
… TimeoutException if timeout

Some places forget to call `assert` to check the return value of `AsynchronousListenerBus.waitUntilEmpty`. Instead of adding `assert` in these places, I think it's better to make `AsynchronousListenerBus.waitUntilEmpty` throw `TimeoutException`.

Author: zsxwing <[email protected]>

Closes #6550 from zsxwing/SPARK-8001 and squashes the following commits:

607674a [zsxwing] Make AsynchronousListenerBus.waitUntilEmpty throw TimeoutException if timeout

(cherry picked from commit 1d8669f)
Signed-off-by: Andrew Or <[email protected]>
@asfgit asfgit closed this in 1d8669f Jun 3, 2015
@zsxwing zsxwing deleted the SPARK-8001 branch June 4, 2015 03:10
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
… TimeoutException if timeout

Some places forget to call `assert` to check the return value of `AsynchronousListenerBus.waitUntilEmpty`. Instead of adding `assert` in these places, I think it's better to make `AsynchronousListenerBus.waitUntilEmpty` throw `TimeoutException`.

Author: zsxwing <[email protected]>

Closes apache#6550 from zsxwing/SPARK-8001 and squashes the following commits:

607674a [zsxwing] Make AsynchronousListenerBus.waitUntilEmpty throw TimeoutException if timeout
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
… TimeoutException if timeout

Some places forget to call `assert` to check the return value of `AsynchronousListenerBus.waitUntilEmpty`. Instead of adding `assert` in these places, I think it's better to make `AsynchronousListenerBus.waitUntilEmpty` throw `TimeoutException`.

Author: zsxwing <[email protected]>

Closes apache#6550 from zsxwing/SPARK-8001 and squashes the following commits:

607674a [zsxwing] Make AsynchronousListenerBus.waitUntilEmpty throw TimeoutException if timeout
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.

4 participants