Skip to content

Commit

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

Signed-off-by: jaime <yun.zhang@zilliz.com>
  • Loading branch information
jaime0815 authored Jan 15, 2025
1 parent 6d45dd5 commit e8f76cd
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 e8f76cd

Please sign in to comment.