From 6cece25fe14c089428eee905638e305e774ac7df Mon Sep 17 00:00:00 2001 From: jaime Date: Fri, 10 Jan 2025 17:20:59 +0800 Subject: [PATCH] fix: unstable ut in leader_vew_manager.go file Signed-off-by: jaime --- internal/querycoordv2/meta/leader_view_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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