GitHub user wangmiao1981 opened a pull request:

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

    [SPARK-14914][CORE]:Fix Resource not closed after using, for unit tests and 
example

    ## What changes were proposed in this pull request?
    
    This is a follow-up work of #15618.
    
    Close file source;
    For any newly created streaming context outside the withContext, explicitly 
close the context. 
    
    ## How was this patch tested?
    
    Existing unit tests.
    


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

    $ git pull https://github.com/wangmiao1981/spark rtest

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

    https://github.com/apache/spark/pull/15818.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 #15818
    
----
commit f0158efc2292b562337fe10a5609383e613f3933
Author: [email protected] <[email protected]>
Date:   2016-11-09T00:28:57Z

    close resources

----


---
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