diff --git a/internal/querynodev2/services.go b/internal/querynodev2/services.go index 3a87f575d2..8631ee94a8 100644 --- a/internal/querynodev2/services.go +++ b/internal/querynodev2/services.go @@ -1312,6 +1312,13 @@ func (node *QueryNode) SyncDistribution(ctx context.Context, req *querypb.SyncDi return id, action.GetCheckpoint().Timestamp }) shardDelegator.AddExcludedSegments(droppedInfos) + flushedInfo := lo.SliceToMap(action.GetSealedInTarget(), func(id int64) (int64, uint64) { + if action.GetCheckpoint() == nil { + return id, typeutil.MaxTimestamp + } + return id, action.GetCheckpoint().Timestamp + }) + shardDelegator.AddExcludedSegments(flushedInfo) shardDelegator.SyncTargetVersion(action.GetTargetVersion(), action.GetGrowingInTarget(), action.GetSealedInTarget(), action.GetDroppedInTarget(), action.GetCheckpoint()) case querypb.SyncType_UpdatePartitionStats: