Why it occurs
When this error occurs, a table shows as readonly and the error states intersecting parts.
You can see the error in the logs or by
The error message looks like:
Cause of the Error
This error can be caused by a race condition between mergeSelectingTask and queue reinitialization.
Solution
Execute the following queries on all replicas:
Then execute the following on all replicas:
You should upgrade to the latest version of ClickHouse
Additional resources
Related PRs and GitHub issues:
Versions affected:
ClickHouse v 22.12 and prior