mirror of https://github.com/milvus-io/milvus.git
Fix confused timetick log (#22733)
Signed-off-by: longjiquan <jiquan.long@zilliz.com>pull/22662/head
parent
c12bcbe1fb
commit
556c1cfc8a
|
@ -189,6 +189,16 @@ func (t *timetickSync) updateTimeTick(in *internalpb.ChannelTimeTickMsg, reason
|
||||||
return fmt.Errorf("skip ChannelTimeTickMsg from un-recognized session %d", in.Base.SourceID)
|
return fmt.Errorf("skip ChannelTimeTickMsg from un-recognized session %d", in.Base.SourceID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if in.Base.SourceID == t.sourceID {
|
||||||
|
if prev != nil && in.DefaultTimestamp < prev.defaultTs {
|
||||||
|
log.Warn("timestamp go back", zap.Int64("source id", in.Base.SourceID),
|
||||||
|
zap.Uint64("curr ts", in.DefaultTimestamp),
|
||||||
|
zap.Uint64("prev ts", prev.defaultTs),
|
||||||
|
zap.String("reason", reason))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if prev == nil {
|
if prev == nil {
|
||||||
t.sess2ChanTsMap[in.Base.SourceID] = newChanTsMsg(in, 1)
|
t.sess2ChanTsMap[in.Base.SourceID] = newChanTsMsg(in, 1)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue