mirror of https://github.com/milvus-io/milvus.git
Disable log print in GetSgementInfo (#12139)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/12274/head
parent
88012acb86
commit
db3ad2bc5f
|
@ -528,7 +528,7 @@ func (node *QueryNode) GetSegmentInfo(ctx context.Context, in *queryPb.GetSegmen
|
|||
infos := make([]*queryPb.SegmentInfo, 0)
|
||||
|
||||
// get info from historical
|
||||
node.historical.replica.printReplica()
|
||||
// node.historical.replica.printReplica()
|
||||
historicalSegmentInfos, err := node.historical.replica.getSegmentInfosByColID(in.CollectionID)
|
||||
if err != nil {
|
||||
log.Debug("GetSegmentInfo: get historical segmentInfo failed", zap.Int64("collectionID", in.CollectionID), zap.Error(err))
|
||||
|
@ -543,7 +543,7 @@ func (node *QueryNode) GetSegmentInfo(ctx context.Context, in *queryPb.GetSegmen
|
|||
infos = append(infos, historicalSegmentInfos...)
|
||||
|
||||
// get info from streaming
|
||||
node.streaming.replica.printReplica()
|
||||
// node.streaming.replica.printReplica()
|
||||
streamingSegmentInfos, err := node.streaming.replica.getSegmentInfosByColID(in.CollectionID)
|
||||
if err != nil {
|
||||
log.Debug("GetSegmentInfo: get streaming segmentInfo failed", zap.Int64("collectionID", in.CollectionID), zap.Error(err))
|
||||
|
@ -556,7 +556,7 @@ func (node *QueryNode) GetSegmentInfo(ctx context.Context, in *queryPb.GetSegmen
|
|||
return res, err
|
||||
}
|
||||
infos = append(infos, streamingSegmentInfos...)
|
||||
log.Debug("GetSegmentInfo: get segment info from query node", zap.Int64("nodeID", node.session.ServerID), zap.Any("segment infos", infos))
|
||||
// log.Debug("GetSegmentInfo: get segment info from query node", zap.Int64("nodeID", node.session.ServerID), zap.Any("segment infos", infos))
|
||||
|
||||
return &queryPb.GetSegmentInfoResponse{
|
||||
Status: &commonpb.Status{
|
||||
|
|
Loading…
Reference in New Issue