mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix panic because timestamp was nil (#23096)
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
653d9ecf91
commit
970dcb3161
@ -57,7 +57,7 @@ func InsertExcluded(n *filterNode, c *Collection, msg *InsertMsg) error {
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
if msg.EndTimestamp <= segInfo.GetDmlPosition().Timestamp {
|
||||
if msg.EndTimestamp <= segInfo.GetDmlPosition().GetTimestamp() {
|
||||
return WrapErrMsgExcluded(msg.SegmentID)
|
||||
}
|
||||
return nil
|
||||
|
||||
@ -44,7 +44,7 @@ func (p *pipeline) ExcludedSegments(segInfos ...*datapb.SegmentInfo) {
|
||||
for _, segInfo := range segInfos {
|
||||
log.Debug("pipeline add exclude info",
|
||||
zap.Int64("segmentID", segInfo.GetID()),
|
||||
zap.Uint64("tss", segInfo.GetDmlPosition().Timestamp),
|
||||
zap.Uint64("ts", segInfo.GetDmlPosition().GetTimestamp()),
|
||||
)
|
||||
p.excludedSegments.Insert(segInfo.GetID(), segInfo)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user