Skip to content
Discussion options

You must be logged in to vote

The error indicates that ClickHouse tables are in readonly mode because table metadata was not found in Zookeeper(1). This typically occurs when replicas have corrupted local metadata that prevents them from properly registering with Zookeeper(1).

Recovery Steps

When ClickHouse replicas show persistent is_readonly = 1 and cannot find metadata in Zookeeper, you need to force the affected nodes to clean their local history and re-attach to download parts from healthy replicas(1).

For the affected replicas (shard0-0 and shard0-2 in your case), follow these steps(1):

  1. Stop the affected ClickHouse pod
  2. Delete the PVC (Persistent Volume Claim) for the corrupted node to clear local metadata
  3. Resta…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jannikmaierhoefer
Comment options

@natenberenstein
Comment options

Answer selected by natenberenstein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants