enhance: [hotfix-2.4.5]cherry pick some fixes (#34659)

include pr: #34019,#34502,#34559

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
wei liu 2024-07-13 10:25:47 +08:00 committed by GitHub
parent 823fba6349
commit 59ef1115d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 8 deletions

View File

@ -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) {

View File

@ -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 {

View File

@ -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
}