Skip to content

Commit 6cb00aa

Browse files
jiangke-srkejiang
andauthored
fix: log datapb.SegmentInfo is too large milvus-io#17685 (milvus-io#17693)
Signed-off-by: kejiang <[email protected]> Co-authored-by: kejiang <[email protected]>
1 parent b4f2125 commit 6cb00aa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

internal/querynode/task.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,13 @@ func (w *watchDmChannelsTask) Execute(ctx context.Context) (err error) {
291291
}
292292
}
293293
w.node.metaReplica.addExcludedSegments(collectionID, flushedCheckPointInfos)
294+
flushedSegmentIDs := make([]UniqueID, 0)
295+
for i := 0; i < len(flushedCheckPointInfos); i++ {
296+
flushedSegmentIDs = append(flushedSegmentIDs, flushedCheckPointInfos[i].GetID())
297+
}
294298
log.Info("watchDMChannel, add check points info for flushed segments done",
295299
zap.Int64("collectionID", collectionID),
296-
zap.Any("flushedCheckPointInfos", flushedCheckPointInfos),
300+
zap.Any("flushedSegmentIDs", flushedSegmentIDs),
297301
)
298302

299303
// add excluded segments for dropped segments,
@@ -312,9 +316,13 @@ func (w *watchDmChannelsTask) Execute(ctx context.Context) (err error) {
312316
}
313317
}
314318
w.node.metaReplica.addExcludedSegments(collectionID, droppedCheckPointInfos)
319+
droppedSegmentIDs := make([]UniqueID, 0)
320+
for i := 0; i < len(droppedCheckPointInfos); i++ {
321+
droppedSegmentIDs = append(droppedSegmentIDs, droppedCheckPointInfos[i].GetID())
322+
}
315323
log.Info("watchDMChannel, add check points info for dropped segments done",
316324
zap.Int64("collectionID", collectionID),
317-
zap.Any("droppedCheckPointInfos", droppedCheckPointInfos),
325+
zap.Any("droppedSegmentIDs", droppedSegmentIDs),
318326
)
319327

320328
// add flow graph

0 commit comments

Comments
 (0)