Skip to content

Snappy Decompressor/Compressor may cause direct memory leak #2269

@asfimport

Description

@asfimport

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.

Environment: parquet-1.8.1

spark2.1
Reporter: liupengcheng / @liupc
Assignee: liupengcheng / @liupc

Related issues:

PRs and other links:

Note: This issue was originally created as PARQUET-1485. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions