Skip to content

Commit

Permalink
fix: [2.4] Set the start time for index tasks that no need actual bui…
Browse files Browse the repository at this point in the history
…lding (#38353)

issue: #38354

Signed-off-by: Cai Zhang <[email protected]>
  • Loading branch information
xiaocai2333 authored Dec 11, 2024
1 parent e843a46 commit e758d8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/datacoord/task_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func (it *indexBuildTask) PreCheck(ctx context.Context, dependency *taskSchedule
if isFlatIndex(indexType) || segIndex.NumRows < Params.DataCoordCfg.MinSegmentNumRowsToEnableIndex.GetAsInt64() {
log.Ctx(ctx).Info("segment does not need index really", zap.Int64("taskID", it.taskID),
zap.Int64("segmentID", segIndex.SegmentID), zap.Int64("num rows", segIndex.NumRows))
it.SetStartTime(time.Now())
it.SetState(indexpb.JobState_JobStateFinished, "fake finished index success")
return true
}
Expand Down

0 comments on commit e758d8e

Please sign in to comment.