diff --git a/internal/querynodev2/services.go b/internal/querynodev2/services.go index a8e6b3d03d..85d3a19369 100644 --- a/internal/querynodev2/services.go +++ b/internal/querynodev2/services.go @@ -1339,6 +1339,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: