-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-5615] Let the test stop gracefully and don't throw exception #4364
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
Conversation
|
All the other calls to |
|
Test build #26746 timed out for PR 4364 at commit |
|
I think that is because it uses |
|
Test build #26750 timed out for PR 4364 at commit |
|
I don't see any error but the test failed... |
|
@viirya It timed out, which may actually be related to waiting for the test to gracefully complete! |
|
Yes, I agree with @srowen . Might be worth investigating why stopGracefully does not stop at all. |
|
After investigating that, I found that sometimes the receiver will be registered into tracker after |
|
Test build #26836 has finished for PR 4364 at commit
|
|
Could you explain why adding the await termination did the trick?? Are there issues like if you stop() too soon after you start(), the thing may get stuck indefinitely? |
|
Yes. That is because So if you stop() soon after you start() and you stop() in graceful way, then you will possibly hit this problem and get stuck indefinitely. Adding the await termination can do the trick. And we should add a timeout to |
|
I think we should fix that problem first. stop() immediately after start() On Sun, Feb 8, 2015 at 8:36 AM, Liang-Chi Hsieh [email protected]
|
|
Okay I would submit a patch for that later. |
|
@viirya Are we closing this PR for the moment? what's the status of the JIRA, given the discussion? |
|
Without this pr, running |
|
Yes, this pr is just used to avoid causing the SparkException message. I agreed that we can close it now and focus on the another issue. |
testPackageinStreamingContextSuiteoften throwsSparkExceptionbecause itssscis not shut down gracefully. Not affect the unit test but I think we can make it graceful.