fix: checkResultTicker leak (#35377)

https://github.com/milvus-io/milvus/issues/35376

Signed-off-by: fengjun2016 <jornfeng@gmail.com>
pull/35439/head
CharlesFeng 2024-08-13 21:36:52 +08:00 committed by GitHub
parent 9abc0265c4
commit f5b4a972a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -359,6 +359,7 @@ func (c *compactionPlanHandler) loopCheck() {
log.Info("compactionPlanHandler start loop check", zap.Any("check result interval", interval))
defer c.stopWg.Done()
checkResultTicker := time.NewTicker(interval)
defer checkResultTicker.Stop()
for {
select {
case <-c.stopCh: