Open kazhou2024 opened 2 weeks ago
Does the table really fail to startup? I think replica should start as readonly in that case.
Does the table really fail to startup? I think replica should start as readonly in that case.
Yes, we have 3*16 replicas, there is one replica was keeping crashing for 6 hours with above error as we have 200+ tables, and finally succeed once no ZK error.
Company or project name
No response
Question
Hi CH crew, I found that one replica keep crashing during setup, and there are many mutationsFinalizingTask for different tables, event there is only ONE record in system.mutations table? What is the CH setup process, is there any setting to bypass the mutation execution? As we found that one table is no data/part/mutations, but still get the StorageReplicatedMergeTree::mutationsFinalizingTask error. Seems even no mutation, the CH still need to load the mutation, check execution and then update to ZK per each table? Could we optimize it, as the ZK may not stable?
2024.07.04 21:31:13.194521 [ 463 ] {} (0d503ce9-043b-44ae-b305-3143a61d5c7b): void DB::StorageReplicatedMergeTree::mutationsFinalizingTask(): Code: 242. DB::Exception: Table is in readonly mode (replica path: /clickhouse/xxx/xxxx/tables/10/xxx/replicas/xx-xx-xx-10-01719836866). (TABLE_IS_READ_ONLY), Stack trace (when copying this message, always include the lines below):