mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
fix: panic in timetick_sender (#35451)
https://github.com/milvus-io/milvus/issues/35450 Signed-off-by: fengjun2016 <jornfeng@gmail.com>
This commit is contained in:
parent
6f3fcdc810
commit
a690e6e004
@ -164,9 +164,10 @@ func (m *TimeTickSender) cleanStatesCache(lastSentTss map[string]uint64) {
|
||||
delete(m.statsCache[channelName].segStats, segmentID)
|
||||
}
|
||||
}
|
||||
}
|
||||
if len(m.statsCache[channelName].segStats) == 0 {
|
||||
delete(m.statsCache, channelName)
|
||||
|
||||
if len(m.statsCache[channelName].segStats) == 0 {
|
||||
delete(m.statsCache, channelName)
|
||||
}
|
||||
}
|
||||
}
|
||||
log.RatedDebug(30, "TimeTickSender stats", zap.Any("lastSentTss", lastSentTss), zap.Int("sizeBeforeClean", sizeBeforeClean), zap.Int("sizeAfterClean", len(m.statsCache)))
|
||||
|
Loading…
Reference in New Issue
Block a user