diff --git a/internal/datacoord/meta.go b/internal/datacoord/meta.go index 037928fa78c97..74d836d116e2c 100644 --- a/internal/datacoord/meta.go +++ b/internal/datacoord/meta.go @@ -1011,10 +1011,12 @@ func (m *meta) UpdateSegmentsInfo(operators ...UpdateOperator) error { } for _, operator := range operators { - ok := operator(updatePack) - if !ok { - return nil - } + operator(updatePack) + } + + // skip if all segment not exist + if len(updatePack.segments) == 0 { + return nil } segments := lo.MapToSlice(updatePack.segments, func(_ int64, segment *SegmentInfo) *datapb.SegmentInfo { return segment.SegmentInfo })