Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4090

Memory leak in snappy-java 1.1.1.4/5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • Spark Core
    • None

    Description

      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:

      +        inputBuffer = inputBufferAllocator.allocate(inputSize);
      +        outputBuffer = inputBufferAllocator.allocate(outputSize);
      

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

      Attachments

        1. screenshot-12.png
          419 kB
          Davies Liu

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davies Davies Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: