未验证 提交 ab88dd77 编写于 作者: J jaime 提交者: GitHub

Remove unnecessary log for datacoord gc (#19698)

Signed-off-by: Nyun.zhang <yun.zhang@zilliz.com>
Signed-off-by: Nyun.zhang <yun.zhang@zilliz.com>
上级 4df3552f
......@@ -149,24 +149,23 @@ func (gc *garbageCollector) scan() {
segmentID, err := storage.ParseSegmentIDByBinlog(gc.option.cli.RootPath(), infoKey)
if err != nil {
missing++
log.Warn("parse segment id error", zap.String("infoKey", infoKey), zap.Error(err))
continue
}
if gc.segRefer.HasSegmentLock(segmentID) {
valid++
continue
}
missing++
// not found in meta, check last modified time exceeds tolerance duration
if err != nil {
log.Error("get modified time error", zap.String("infoKey", infoKey))
continue
}
if time.Since(modTimes[i]) > gc.option.missingTolerance {
// ignore error since it could be cleaned up next time
removedKeys = append(removedKeys, infoKey)
err = gc.option.cli.Remove(ctx, infoKey)
if err != nil {
missing++
log.Error("failed to remove object", zap.String("infoKey", infoKey), zap.Error(err))
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册