GitHub user evanj opened a pull request:

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

    [CORE] MapOutputTracker.deserializeMapStatuses: close input streams

    GZIPInputStream allocates native memory that is not freed until close() or
    when the finalizer runs. It is best to close() these streams explicitly.
    
    @stephenh made the same change for serializeMapStatuses in commit b0d884f0. 
This is the same change for deserialize.
    
    
    (I ran the unit test suite! it seems to have passed. I did not make a JIRA 
since this seems "trivial", and the guidelines suggest it is not required for 
trivial changes)

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

    $ git pull https://github.com/evanj/spark master

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

    https://github.com/apache/spark/pull/5982.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 #5982
    
----
commit 0d76e85338aefd28cf6c47537624b5b2c74713ef
Author: Evan Jones <[email protected]>
Date:   2015-05-07T15:19:41Z

    [CORE] MapOutputTracker.deserializeMapStatuses: close input streams
    
    GZIPInputStream allocates native memory that is not freed until close() or
    when the finalizer runs. It is best to close() these streams explicitly.

----


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