pingcap / pingcap/tidb

`RecordHistoricalStatsToStorage` used too much memory

Open
#52,826 4 comments 0 reactions 1 assignee Claimed by @0xPoe View on GitHub
affects-7.5 component/statistics report/customer severity/moderate sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)
image
It seems that there are many long insert internal SQL statements in the session pool of the domain, and it appears that they have not been cleaned up properly.

### 2. What did you expect to see? (Required)

### 3. What did you see instead (Required)

### 4. What is your TiDB version? (Required)
v7.5.0

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.