fix: Reduce querycoord check node in replica interval for test (#45837)

issue: #45791

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2025-11-27 15:07:07 +08:00 committed by GitHub
parent 464a805c63
commit 7c9a9c6f7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 0 deletions

View File

@ -177,6 +177,7 @@ func (ob *ReplicaObserver) checkNodesInReplica() {
// check all ro nodes, remove it from replica if all segment/channel has been moved
for _, collectionID := range collections {
replicas := ob.meta.ReplicaManager.GetByCollection(ctx, collectionID)
hasNodeRemoved := false
for _, replica := range replicas {
if enableChannelExclusiveMode && !replica.IsChannelExclusiveModeEnabled() {
// register channel for enable exclusive mode
@ -217,9 +218,13 @@ func (ob *ReplicaObserver) checkNodesInReplica() {
zap.Error(err))
continue
}
hasNodeRemoved = true
logger.Info("all segment/channel has been removed from ro node, remove it from replica",
zap.Int64s("removedNodes", removeNodes),
)
}
if hasNodeRemoved {
utils.RecoverReplicaOfCollection(ctx, ob.meta, collectionID)
}
}
}

View File

@ -89,6 +89,8 @@ extraConfigFiles:
queryNode:
segcore:
exprEvalBatchSize: 512
queryCoord:
checkNodeInReplicaInterval: 3
metrics:
serviceMonitor:
enabled: true

View File

@ -98,6 +98,8 @@ extraConfigFiles:
scalarField: true
scalarIndex: true
growingMmapEnabled: true
queryCoord:
checkNodeInReplicaInterval: 3
metrics:
serviceMonitor:
enabled: true

View File

@ -94,6 +94,8 @@ extraConfigFiles:
queryNode:
segcore:
exprEvalBatchSize: 512
queryCoord:
checkNodeInReplicaInterval: 3
metrics:
serviceMonitor:
enabled: true