Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1485

Snappy Decompressor/Compressor may cause direct memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.1
    • 1.11.0
    • parquet-mr
    • parquet-1.8.1

      spark2.1

    • Important

    Description

      In out production environment, we encountered a direct memory oom issues caused by the direct buffer not released in time.

      After carefully checked the code, it seems that the some methods of SnappyDecompressor/SnappyCompressor would not release the direct buffer manually. If too much direct memory allocated and no GC happens, this bug may result in direct memory oom.

      Moreover, if the `-XX:+DisableImplicitGC` jvm option is specified, the direct memory oom would happen easily for large datasets.

      Seems that the problem still exist in the latest code.

      Attachments

        Issue Links

          Activity

            People

              liupengcheng liupengcheng
              liupengcheng liupengcheng
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: