Davies Liu created SPARK-4090:
---------------------------------

             Summary: Memory leak in snappy-java 1.1.1.4/5
                 Key: SPARK-4090
                 URL: https://issues.apache.org/jira/browse/SPARK-4090
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 1.2.0
            Reporter: Davies Liu
            Priority: Blocker


There is memory-leak bug in snappy-java 1.1.1.4/5, we should rollback to 
1.1.1.3 or wait for bugfix.

The jenkins tests timeouted or OOM multiple times recently. While test it 
locally, I got the heap dump of leaked JVM:



Then found that it's a bug in recent releases of snappy-java:
{code}
+        inputBuffer = inputBufferAllocator.allocate(inputSize);
+        outputBuffer = inputBufferAllocator.allocate(outputSize);
{code}

The outputBuffer is allocated from inputBufferAllocator but released to 
outputBufferAllocator: https://github.com/xerial/snappy-java/issues/91





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to