Skip to content

Commit

Permalink
fix: unstable ut in leader_vew_manager.go file (#39162)
Browse files Browse the repository at this point in the history
issue: #38672
pr: #39161

Signed-off-by: jaime <[email protected]>
  • Loading branch information
jaime0815 authored Jan 10, 2025
1 parent a43720f commit b0afe32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/querycoordv2/meta/leader_view_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0afe32

Please sign in to comment.