v.24.4Improvement
OPTIMIZE FINAL for ReplicatedMergeTree Enhanced to Wait for Active Merges
OPTIMIZE FINALforReplicatedMergeTreenow will wait for currently active merges to finish and then reattempt to schedule a final merge. This will put it more in line with ordinaryMergeTreebehaviour. #62067 (Nikita Taranov).
Why it matters
This feature ensures thatOPTIMIZE FINAL on ReplicatedMergeTree does not start a final merge while other merges are running, preventing merge conflicts and improving stability and predictability during optimization operations.How to use it
Simply run theOPTIMIZE FINAL command on a ReplicatedMergeTree table as usual. The system will now automatically wait for any active merges to finish before attempting the final merge.