fix: Get current index version from knowhere before building index (#34901)

issue: #34900

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
pull/34913/head
cai.zhang 2024-07-23 10:23:42 +08:00 committed by GitHub
parent 4c45bc412f
commit 575ce91039
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -376,6 +376,8 @@ func (it *indexBuildTask) PreExecute(ctx context.Context) error {
}
}
it.req.CurrentIndexVersion = getCurrentIndexVersion(it.req.GetCurrentIndexVersion())
log.Ctx(ctx).Info("Successfully prepare indexBuildTask", zap.Int64("buildID", it.req.GetBuildID()),
zap.Int64("collectionID", it.req.GetCollectionID()), zap.Int64("segmentID", it.req.GetSegmentID()))
return nil
@ -566,7 +568,6 @@ func (it *indexBuildTask) parseFieldMetaFromBinlog(ctx context.Context) error {
break
}
}
it.req.CurrentIndexVersion = getCurrentIndexVersion(it.req.GetCurrentIndexVersion())
return nil
}