Skip to content

cluster重启后,compaction出现大量conflict #38964

Discussion options

You must be logged in to vote

Compaction相关逻辑主要都在datacoord里,compaction任务会被记录在元数据里,当重启的时候,未完成的任务会被读出执行

meta CompactionMeta

从元数据读出的任务开始时,会把相关的segment标记为isCompacting。而compaction_trigger跟恢复逻辑互不感知,compaction_trigger会去检测有哪些segment可以被compact,当它发现某些segment是isCompacting时,就会记录这么一条日志segment is compacting: compaction plan conflict
这个冲突可以忽略,compaction_trigger会忽略那些isCompacting的segment,当元数据读出的那批任务执行完之后,compaction_trigger就正常运行了。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xiaobingxia-at
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants