pingcap / pingcap/tidb

potential leak problem of memtracker

Open
#54,194 1 comment 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
From https://github.com/pingcap/tidb/issues/54005, we have identified a potential issue where some operator's memtracker objects might not be detached properly, leading to memory leaks. When these operators act as the inner child of an apply operator, they are repeatedly opened and closed, causing the leaked memTracker and Action objects to remain referenced and unreclaimed. This results in uncontrolled memory accumulation.

We need to construct a set of tests to observe different operators when they act as the inner child of an apply operator. By capturing heap profiles, we aim to determine if there are any memtracker or action leaks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.