Print unflushed segmentIDs instead of whole SegmentInfo (#16301)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/16445/head
bigsheeper 2022-04-29 19:13:47 +08:00 committed by GitHub
parent f18b3c44ee
commit 1a29337e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -321,9 +321,13 @@ func (w *watchDmChannelsTask) Execute(ctx context.Context) error {
unFlushedCheckPointInfos = append(unFlushedCheckPointInfos, info.UnflushedSegments...)
}
w.node.streaming.replica.addExcludedSegments(collectionID, unFlushedCheckPointInfos)
unflushedSegmentIDs := make([]UniqueID, 0)
for i := 0; i < len(unFlushedCheckPointInfos); i++ {
unflushedSegmentIDs = append(unflushedSegmentIDs, unFlushedCheckPointInfos[i].GetID())
}
log.Debug("watchDMChannel, add check points info for unFlushed segments done",
zap.Int64("collectionID", collectionID),
zap.Any("unFlushedCheckPointInfos", unFlushedCheckPointInfos),
zap.Any("unflushedSegmentIDs", unflushedSegmentIDs),
)
// add excluded segments for flushed segments,