Skip to content

Conversation

@davies
Copy link
Contributor

@davies davies commented Oct 26, 2014

No description provided.

xerial added a commit that referenced this pull request Oct 26, 2014
fix memory leak in SnappyOutputStream
@xerial xerial merged commit be0f2dd into xerial:develop Oct 26, 2014
xerial added a commit that referenced this pull request Oct 26, 2014
@xerial
Copy link
Owner

xerial commented Oct 26, 2014

Thanks for finding this mistake. Just released 1.1.1.6.

@JoshRosen
Copy link
Contributor

Maybe we should add a test to catch large-scale memory leaks like this. One idea would be to write a test that compresses, say, a 2 gigabyte stream into /dev/null, which I think would expose leaks like this.

@xerial
Copy link
Owner

xerial commented Oct 27, 2014

Sounds good. A more elaborated approach would be counting the total allocated/released memory sizes, and check their difference in a test case.

asfgit pushed a commit to apache/spark that referenced this pull request Nov 16, 2014
This upgrades snappy-java to 1.1.1.6, which includes a patch that improves error messages when attempting to deserialize empty inputs using SnappyInputStream (see xerial/snappy-java#89).

We previously tried up upgrade to 1.1.1.5 in #2911 but reverted that patch after discovering a memory leak in snappy-java.  This should leak have been fixed in 1.1.1.6, though (see xerial/snappy-java#92).

Author: Josh Rosen <[email protected]>

Closes #3287 from JoshRosen/SPARK-4419 and squashes the following commits:

5d6f4cc [Josh Rosen] [SPARK-4419] Upgrade snappy-java to 1.1.1.6.
asfgit pushed a commit to apache/spark that referenced this pull request Nov 16, 2014
This upgrades snappy-java to 1.1.1.6, which includes a patch that improves error messages when attempting to deserialize empty inputs using SnappyInputStream (see xerial/snappy-java#89).

We previously tried up upgrade to 1.1.1.5 in #2911 but reverted that patch after discovering a memory leak in snappy-java.  This should leak have been fixed in 1.1.1.6, though (see xerial/snappy-java#92).

Author: Josh Rosen <[email protected]>

Closes #3287 from JoshRosen/SPARK-4419 and squashes the following commits:

5d6f4cc [Josh Rosen] [SPARK-4419] Upgrade snappy-java to 1.1.1.6.

(cherry picked from commit 7d8e152)
Signed-off-by: Reynold Xin <[email protected]>
ayappanec pushed a commit to ayappanec/snappy-java that referenced this pull request Dec 5, 2014
ayappanec pushed a commit to ibmsoe/snappy-java that referenced this pull request Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants