Skip to content

[Bug] BE Memory Leak In Json Load #5069

@stdpain

Description

@stdpain

Describe the bug
BE Memory Leak

To Reproduce
Steps to reproduce the behavior:

  1. Create a Table
  2. Using JSON load multiple times
  3. Memory increased from 400M to 3G in 20 mins
  4. when i stop json load, mem will stay at 2G
  5. I use tcmalloc heap profile,I found a memory leak at StreamLoadPipe::read_one_message

Screenshots
Here is the HEAP_PROFILE
58EC867964F7159A66F4526DD67C35D1

I Found the leak Here and run the profile again
image

0192AB9EAA3D761A665A402887057E8F

So I want to use smart pointers to refactor this code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions