Add indexMeta version for IndexCoord log (#16266)

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
pull/16270/head
cai.zhang 2022-03-29 21:03:27 +08:00 committed by GitHub
parent a887d81136
commit e2e345079f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -730,7 +730,8 @@ func (i *IndexCoord) recycleUnusedIndexFiles() {
zap.Int64("Recycle the index files successfully for deleted index with indexBuildID", meta.indexMeta.IndexBuildID))
} else {
log.Debug("IndexCoord recycleUnusedIndexFiles",
zap.Int64("Recycle the low version index files of the index with indexBuildID", meta.indexMeta.IndexBuildID))
zap.Int64("Recycle the low version index files of the index with indexBuildID", meta.indexMeta.IndexBuildID),
zap.Int64("indexMeta version", meta.indexMeta.Version))
for j := 1; j < int(meta.indexMeta.Version); j++ {
unusedIndexFilePathPrefix := Params.IndexCoordCfg.IndexStorageRootPath + "/" + strconv.Itoa(int(meta.indexMeta.IndexBuildID)) + "/" + strconv.Itoa(j)
if err := i.chunkManager.RemoveWithPrefix(unusedIndexFilePathPrefix); err != nil {