fix: [2.5] ReEnqueue L0 compaction task when preCheck failed (#39871)

issue: #39868 

master pr: #39870

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2025-02-14 13:38:15 +08:00 committed by GitHub
parent ba0edb8383
commit 418f971d2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,6 +327,8 @@ func (c *compactionPlanHandler) schedule() []CompactionTask {
// Do not move this check logic outside the lock; it needs to remain mutually exclusive with the stats task.
if t.GetTaskProto().GetType() == datapb.CompactionType_Level0DeleteCompaction {
if !t.PreparePlan() {
selected = selected[:len(selected)-1]
excluded = append(excluded, t)
c.executingGuard.Unlock()
continue
}