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 byCause of the Error
This error can be caused by a race condition betweenmergeSelectingTask and queue reinitialization.
Solution
Execute the following queries on all replicas:Additional resources
Related PRs and GitHub issues:- ClickHouse/ClickHouse#34096
- ClickHouse/ClickHouse#30651
- ClickHouse/ClickHouse#31060
- ClickHouse/ClickHouse#35863