CpuRecorder may leak memory for destroyed threads #15304
Labels
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
affects-6.0
affects-6.1
affects-6.2
affects-6.3
affects-6.4
affects-6.5
affects-6.6
affects-7.0
affects-7.1
affects-7.2
affects-7.3
severity/moderate
type/bug
Type: Issue - Confirmed a bug
Bug Report
CpuRecorder.thread_stats
never get cleanup. It should remove threads that is not in_thread_stores
.Through it may not be a real problem as TiKV does not create and destroy threads frequently.
tikv/components/resource_metering/src/recorder/sub_recorder/cpu.rs
Lines 49 to 61 in 9b1a816
What version of TiKV are you using?
v7.3.0
The text was updated successfully, but these errors were encountered: