From befe0e21fd27ed940bcc5e935d4dab13e684ce92 Mon Sep 17 00:00:00 2001 From: wei liu Date: Mon, 26 Feb 2024 11:02:55 +0800 Subject: [PATCH] fix: Set indexInfo when try to set segment to leader view (#30758) issue: #30150 see also: #30258 cause `SyncDataDistribution` will try to load delta for segment. if miss indexInfo in request, sync action will failed due to lack of index info. This PR set indexinfo when try to set segment to leader view Signed-off-by: Wei Liu --- internal/querycoordv2/task/executor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/querycoordv2/task/executor.go b/internal/querycoordv2/task/executor.go index 993e8120c1..0efe7f2272 100644 --- a/internal/querycoordv2/task/executor.go +++ b/internal/querycoordv2/task/executor.go @@ -433,7 +433,7 @@ func (ex *Executor) setDistribution(task *LeaderTask, step int) error { return err } - loadInfo, _, err := ex.getLoadInfo(ctx, task.CollectionID(), action.SegmentID(), channel) + loadInfo, indexInfo, err := ex.getLoadInfo(ctx, task.CollectionID(), action.SegmentID(), channel) if err != nil { return err } @@ -457,6 +457,7 @@ func (ex *Executor) setDistribution(task *LeaderTask, step int) error { Info: loadInfo, }, }, + IndexInfoList: indexInfo, } startTs := time.Now()