From 935bc1fb714d8f5a8edfc24fc208a9bc82daab4b Mon Sep 17 00:00:00 2001 From: wei liu Date: Thu, 20 Jun 2024 14:40:15 +0800 Subject: [PATCH] fix: Fix GetReplicas API return nil status (#33715) issue: #33702 Signed-off-by: Wei Liu --- internal/querycoordv2/services.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/querycoordv2/services.go b/internal/querycoordv2/services.go index b64f09921f..159b933e80 100644 --- a/internal/querycoordv2/services.go +++ b/internal/querycoordv2/services.go @@ -876,9 +876,7 @@ func (s *Server) GetReplicas(ctx context.Context, req *milvuspb.GetReplicasReque replicas := s.meta.ReplicaManager.GetByCollection(req.GetCollectionID()) if len(replicas) == 0 { - return &milvuspb.GetReplicasResponse{ - Replicas: make([]*milvuspb.ReplicaInfo, 0), - }, nil + return resp, nil } for _, replica := range replicas {