GitHub user JoshRosen opened a pull request:

    https://github.com/apache/spark/pull/9982

    [SPARK-12001] Allow partially-stopped StreamingContext to be completely 
stopped

    If `StreamingContext.stop()` is interrupted midway through the call, the 
context will be marked as stopped but certain state will have not been cleaned 
up. Because `state = STOPPED` will be set, subsequent `stop()` calls will be 
unable to finish stopping the context, preventing any new StreamingContexts 
from being created.
    
    This patch addresses this issue by introducing a new `PARTIALLY_STOPPED` 
state, which allows `stop()` to execute a second time in order to finish 
stopping the context.
    
    I discovered this issue by examining logs from a failed Jenkins run in 
which this race condition occurred in `FailureSuite`, leaking an unstoppable 
context and causing all subsequent tests to fail.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JoshRosen/spark SPARK-12001

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/9982.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #9982
    
----
commit 77df0ce8885c84e5e6e418774d0bcd8897e788cd
Author: Josh Rosen <[email protected]>
Date:   2015-11-26T00:15:21Z

    Allow recovery from partial stop of StreamingContext.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to