diff --git a/internal/indexnode/indexnode.go b/internal/indexnode/indexnode.go index 2dc7ab7580..e672b7fb06 100644 --- a/internal/indexnode/indexnode.go +++ b/internal/indexnode/indexnode.go @@ -342,6 +342,7 @@ func (i *IndexNode) ShowConfigurations(ctx context.Context, req *internalpb.Show Configuations: nil, }, nil } + defer i.lifetime.Done() configList := make([]*commonpb.KeyValuePair, 0) for key, value := range Params.GetComponentConfigurations("indexnode", req.Pattern) { diff --git a/internal/querycoordv2/services.go b/internal/querycoordv2/services.go index dea9817a27..b1fb72dd43 100644 --- a/internal/querycoordv2/services.go +++ b/internal/querycoordv2/services.go @@ -840,9 +840,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 { diff --git a/internal/querynodev2/delegator/delegator_data.go b/internal/querynodev2/delegator/delegator_data.go index 02a9509fe6..8c77e8369c 100644 --- a/internal/querynodev2/delegator/delegator_data.go +++ b/internal/querynodev2/delegator/delegator_data.go @@ -21,7 +21,6 @@ import ( "fmt" "math/rand" "runtime" - "sort" "time" "github.com/cockroachdb/errors" @@ -594,10 +593,6 @@ func (sd *shardDelegator) GetLevel0Deletions(partitionID int64, candidate pkorac } } - sort.Slice(pks, func(i, j int) bool { - return tss[i] < tss[j] - }) - return pks, tss }