diff --git a/internal/querycoordv2/observers/target_observer.go b/internal/querycoordv2/observers/target_observer.go index c29625c6b56f6..cf63aa99076f6 100644 --- a/internal/querycoordv2/observers/target_observer.go +++ b/internal/querycoordv2/observers/target_observer.go @@ -388,9 +388,8 @@ func (ob *TargetObserver) shouldUpdateCurrentTarget(ctx context.Context, collect }) collectionReadyLeaders = append(collectionReadyLeaders, channelReadyLeaders...) - nodes := lo.Map(channelReadyLeaders, func(view *meta.LeaderView, _ int) int64 { return view.ID }) - group := utils.GroupNodesByReplica(ob.meta.ReplicaManager, collectionID, nodes) - if int32(len(group)) < replicaNum { + // to avoid stuck here in dynamic increase replica case, we just check available delegator number + if int32(len(collectionReadyLeaders)) < replicaNum { log.RatedInfo(10, "channel not ready", zap.Int("readyReplicaNum", len(channelReadyLeaders)), zap.String("channelName", channel),