Skip to content

Commit

Permalink
print log when invalid segment is not 0
Browse files Browse the repository at this point in the history
Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
  • Loading branch information
xiaocai2333 committed Jul 12, 2024
1 parent c7606d5 commit 8961967
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/datacoord/segment_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ func (s *SegmentManager) AllocSegment(ctx context.Context, collectionID UniqueID
segments = append(segments, segment)
}

log.Warn("Failed to get segments infos from meta, clear them", zap.Int64s("segmentIDs", lo.Keys(invalidSegments)))
if len(invalidSegments) > 0 {
log.Warn("Failed to get segments infos from meta, clear them", zap.Int64s("segmentIDs", lo.Keys(invalidSegments)))
}
s.segments = lo.Keys(validSegments)

// Apply allocation policy.
Expand Down

0 comments on commit 8961967

Please sign in to comment.