clickhouse的ReplicatedMergeTree表是通过zookeeper来完成同一个shard之间的副本数据的同步,当*Table is in readonly mode的原因是zookeeper当下压力过大,这个可以从system.replication_queue看到同步队列的数量,或者通过system.part_log看当前part的处理数量
SELECT * FROM system.part_log WHERE concat(database, '.', table) = 'i9xiaoapp_stream.dwd_pope_core_action_diff_di_local' and event_time >= '2023-01-15 12:00:00' order by event_time desc