Memory leak risk in session pool usage in stats sync load #59560
Labels
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
impact/leak
report/customer
Customers have encountered this bug.
severity/major
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
The exact reproduction steps are still unknown. But we observed memory leaks in production clusters:
The code in question is similar to what we met in #54022:
v7.5.3:
tidb/pkg/statistics/handle/handle_hist.go
Lines 278 to 281 in 3c599cd
master:
tidb/pkg/statistics/handle/syncload/stats_syncload.go
Lines 303 to 306 in 72a1145
The text was updated successfully, but these errors were encountered: