Uh oh!
There was an error while loading. Please reload this page.
[SPARK-11761] Prevent the call to StreamingContext#stop() in the listener bus's thread - #9741
[SPARK-11761] Prevent the call to StreamingContext#stop() in the listener bus's thread#9741tedyu wants to merge 8 commits into
Conversation
tedyu
commented
Nov 16, 2015
SparkQA
commented
Nov 16, 2015
Test build #46001 has finished for PR 9741 at commit
|
SparkQA
commented
Nov 16, 2015
Test build #46003 has finished for PR 9741 at commit
|
andrewor14
commented
Nov 16, 2015
@tedyu please file a JIRA and put it in the title. I've reminded you many times in the past already. |
tedyu
commented
Nov 16, 2015
@andrewor14 Will pay attention next time. |
SparkQA
commented
Nov 16, 2015
Test build #46009 has finished for PR 9741 at commit
|
tedyu
commented
Nov 17, 2015
zsxwing
commented
Nov 17, 2015
@tedyu could you add a unit test for this fix? Otherwise LGTM |
tdas
commented
Nov 17, 2015
yeah. I can merge this to 1.6 if you add a unit test. |
tedyu
commented
Nov 18, 2015
Please take a look at the test and see what should be improved. |
There was a problem hiding this comment.
the listener bus will just log the exception. You can catch the exception here and use a field to store it. Then you can assert the exception in the test.
There was a problem hiding this comment.
Could you add Oh, it's not necessary since you check it after stopping. There must be some memory barrier already.@volatile?
SparkQA
commented
Nov 18, 2015
Test build #46134 has finished for PR 9741 at commit
|
zsxwing
commented
Nov 18, 2015
LGTM |
SparkQA
commented
Nov 18, 2015
Test build #46125 has finished for PR 9741 at commit
|
tdas
commented
Nov 18, 2015
This an old commit. I will wait for the test on the latest commit to pass. Otherwise LGTM. |
SparkQA
commented
Nov 18, 2015
Test build #46132 has finished for PR 9741 at commit
|
SparkQA
commented
Nov 18, 2015
Test build #46136 has finished for PR 9741 at commit
|
tedyu
commented
Nov 18, 2015
For both 46132 and 46136: |
zsxwing
commented
Nov 18, 2015
retest this please |
tedyu
commented
Nov 18, 2015
DirectKafkaStreamSuite passed locally: |
tedyu
commented
Nov 18, 2015
|
tedyu
commented
Nov 18, 2015
Jenkins, retest this please |
tedyu
commented
Nov 18, 2015
DirectKafkaStreamSuite failed in maven Jenkins: |
SparkQA
commented
Nov 18, 2015
Test build #46158 has finished for PR 9741 at commit
|
tdas
commented
Nov 18, 2015
I am merging this to master and 1.6. Thanks @tedyu! |
…ener bus's thread See discussion toward the tail of #9723 From zsxwing : ``` The user should not call stop or other long-time work in a listener since it will block the listener thread, and prevent from stopping SparkContext/StreamingContext. I cannot see an approach since we need to stop the listener bus's thread before stopping SparkContext/StreamingContext totally. ``` Proposed solution is to prevent the call to StreamingContext#stop() in the listener bus's thread. Author: tedyu <yuzhihong@gmail.com> Closes#9741 from tedyu/master. (cherry picked from commit 446738e) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
andrewor14
commented
Nov 19, 2015
Should we do this in |
tedyu
commented
Nov 20, 2015
I agree. |
… bus's thread This is continuation of SPARK-11761 Andrew suggested adding this protection. See tail of #9741 Author: tedyu <yuzhihong@gmail.com> Closes#9852 from tedyu/master. (cherry picked from commit 8101254) Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
… bus's thread This is continuation of SPARK-11761 Andrew suggested adding this protection. See tail of #9741 Author: tedyu <yuzhihong@gmail.com> Closes#9852 from tedyu/master.
… bus's thread This is continuation of SPARK-11761 Andrew suggested adding this protection. See tail of apache/spark#9741 Author: tedyu <yuzhihong@gmail.com> Closes #9852 from tedyu/master.
See discussion toward the tail of #9723
From @zsxwing :
Proposed solution is to prevent the call to StreamingContext#stop() in the listener bus's thread.