New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not to allow create different table with same zookeeper replica path #22970
Comments
It's not allowed to create different tables with the same zookeeper path and replica name, such CREATE query should fail with |
No answer. |
Seems like it's possible to reproduce |
Sorry for long time no reply, there is no < auxiliary_zookeepers> found in config file within /etc/clickhouse-server. |
I remembered that I remove the replica path in zookeeper when I first create table db2.tab1 failed for 'replica already exists', then I create successfully. It is not a regular operation😂 |
How about check unique replica path when insert recoud to system.tables? |
This is the culprit. We don't expect manual intervention in ZooKeeper. |
We have this issue. There are several auxiliary ZK and CH keepers configured and it's not possible to re-use the same path because of the error above. No manual editing of data in ZK/CH keeper was involved. |
Use case
I using version 20.8.11.17.lts. One day I created a table db2.tab1 with same zookeeper replica path as table db1.tab1, then I found some errors in log:
then I restart clickhouse instance but cannot start successfully, Similar error as above :
until I delete db1.tab1 metadata in disk I can start clickhouse instance successfully.
Describe the solution you'd like
So I suggest Not to allow create different table with same zookeeper replica path to avoid this mistake error.
Describe alternatives you've considered
No
Additional context
No
The text was updated successfully, but these errors were encountered: