Uh oh!
There was an error while loading. Please reload this page.
[SPARK-11572] Process outstanding requests after seeing stop flag - #9723
[SPARK-11572] Process outstanding requests after seeing stop flag#9723tedyu wants to merge 5 commits into
Conversation
SparkQA
commented
Nov 15, 2015
Test build #45961 has finished for PR 9723 at commit
|
SparkQA
commented
Nov 16, 2015
Test build #45966 has finished for PR 9723 at commit
|
JoshRosen
commented
Nov 16, 2015
I'd like @zsxwing to help take a look at this and figure out whether this is a sufficient fix or whether we should revert your original patch and go back to the drawing board. |
JoshRosen
commented
Nov 16, 2015
It's possible that there's a cleaner way to fix the original bug that motivated the incorrect patch vs. trying to patch up the problems introduced by the fix by layering more fixes on top. Let's see. |
SparkQA
commented
Nov 16, 2015
Test build #45962 has finished for PR 9723 at commit
|
SparkQA
commented
Nov 16, 2015
Test build #45968 has finished for PR 9723 at commit
|
SparkQA
commented
Nov 16, 2015
Test build #45973 has finished for PR 9723 at commit
|
tedyu
commented
Nov 16, 2015
I think the above was not related to change in AsynchronousListenerBus |
zsxwing
commented
Nov 16, 2015
IMO, we should revert 3e0a6cf The user should not call I cannot see an approach since we need to stop the listener bus's thread before stopping SparkContext/StreamingContext totally. |
JoshRosen
commented
Nov 16, 2015
I'm going to revert those commits now to try to unbreak the SBT builds. |
tedyu
commented
Nov 16, 2015
Sounds like we should prevent the call to StreamingContext#stop() in the listener bus's thread. |
zsxwing
commented
Nov 16, 2015
Sound like a good idea. Ping @tdas, what do you think? |
…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>
…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.
…ener bus's thread See discussion toward the tail of apache/spark#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.
This is to address the regression Josh discovered.