diff --git a/internal/querycoordv2/meta/leader_view_manager.go b/internal/querycoordv2/meta/leader_view_manager.go index fbb1ee93ea09d..a96bad95d1fca 100644 --- a/internal/querycoordv2/meta/leader_view_manager.go +++ b/internal/querycoordv2/meta/leader_view_manager.go @@ -331,8 +331,8 @@ func (mgr *LeaderViewManager) GetLeaderView(collectionID int64) []*metricsinfo.L if lv, ok := nodeViews.collectionViews[collectionID]; ok { filteredViews = lv } else { - // if collectionID is not found, return empty leader views - return leaderViews + // skip if collectionID is not found + continue } } else { // if collectionID is not set, return all leader views