mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 12:29:36 +08:00
Add log for NoReplicaAvailable Error in QueryCoord.GetShardLeaders (#18662)
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
bb02748dfd
commit
be933a75c0
@ -1166,6 +1166,12 @@ func (qc *QueryCoord) GetShardLeaders(ctx context.Context, req *querypb.GetShard
|
||||
|
||||
// check if there are enough available distinct shards
|
||||
if len(shardLeaderLists) != len(shardNames) {
|
||||
log.Warn("no replica available",
|
||||
zap.String("role", typeutil.QueryCoordRole),
|
||||
zap.Int64("collectionID", req.CollectionID),
|
||||
zap.Any("replicasLists", shardLeaderLists),
|
||||
zap.Any("replicaNames", shardNames))
|
||||
|
||||
return &querypb.GetShardLeadersResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_NoReplicaAvailable,
|
||||
|
Loading…
Reference in New Issue
Block a user