Fix panic because timestamp was nil (#23096)

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
aoiasd 2023-03-29 17:20:04 +08:00 committed by GitHub
parent 653d9ecf91
commit 970dcb3161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)
}