mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Handle error and oragnize log (#16367)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
7161a7760c
commit
4267dc2efc
@ -823,8 +823,12 @@ func (i *IndexCoord) watchMetaLoop() {
|
||||
indexMeta := &indexpb.IndexMeta{}
|
||||
err := proto.Unmarshal(event.Kv.Value, indexMeta)
|
||||
indexBuildID := indexMeta.IndexBuildID
|
||||
log.Debug("IndexCoord watchMetaLoop", zap.Any("event.Key", event.Kv.Key),
|
||||
zap.Any("event.V", indexMeta), zap.Int64("IndexBuildID", indexBuildID), zap.Error(err))
|
||||
log.Debug("IndexCoord watchMetaLoop", zap.Int64("IndexBuildID", indexBuildID))
|
||||
if err != nil {
|
||||
log.Warn("IndexCoord unmarshal indexMeta failed", zap.Int64("IndexBuildID", indexBuildID),
|
||||
zap.Error(err))
|
||||
continue
|
||||
}
|
||||
switch event.Type {
|
||||
case mvccpb.PUT:
|
||||
reload := i.metaTable.LoadMetaFromETCD(indexBuildID, eventRevision)
|
||||
|
Loading…
Reference in New Issue
Block a user