Skip to content

Commit

Permalink
Optimeize clustering compaction
Browse files Browse the repository at this point in the history
Signed-off-by: Cai Zhang <[email protected]>
  • Loading branch information
xiaocai2333 committed Jun 26, 2024
1 parent f8bf690 commit 1127a39
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 85 deletions.
11 changes: 6 additions & 5 deletions internal/datacoord/compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,11 +570,12 @@ func (c *compactionPlanHandler) createCompactTask(t *datapb.CompactionTask) (Com
}
case datapb.CompactionType_ClusteringCompaction:
task = &clusteringCompactionTask{
CompactionTask: t,
meta: c.meta,
sessions: c.sessions,
handler: c.handler,
analyzeScheduler: c.analyzeScheduler,
CompactionTask: t,
meta: c.meta,
sessions: c.sessions,
handler: c.handler,
analyzeScheduler: c.analyzeScheduler,
lastUpdateStateTime: time.Now().UnixMilli(),
}
default:
return nil, merr.WrapErrIllegalCompactionPlan("illegal compaction type")
Expand Down
Loading

0 comments on commit 1127a39

Please sign in to comment.