v.22.9Improvement

ReplicatedMergeTree Tables Read-Only Until ZooKeeper Connection Established

During startup and ATTACH call, ReplicatedMergeTree tables will be readonly until the ZooKeeper connection is made and the setup is finished. #40148 (Antonio Andelic).
ReplicatedMergeTree tables are now readonly during startup and ATTACH until the ZooKeeper connection is established and setup completes.

Why it matters

This feature ensures that ReplicatedMergeTree tables do not accept writes before the ZooKeeper connection is ready and the replication setup is finished, preventing potential inconsistency or data corruption during the initialization phase.

How to use it

No explicit user action is needed. During the startup process or when using the ATTACH command for ReplicatedMergeTree tables, the tables will be automatically readonly until the required ZooKeeper connection is established and setup is complete.