Should fail ddl query as soon as possible if table is shutdown#19684
Should fail ddl query as soon as possible if table is shutdown#19684tavplubix merged 7 commits intoClickHouse:masterfrom
Conversation
|
Ok, but could you please explain which problem are you tying to solve? If table is partially shutdown, then |
|
@tavplubix If all replica is dropped, status.is_leader is false on all replicas, so that the number of tries will not be updated by any replica. And it will have to wait for timeout currently it is MAX_EXECUTION_TIMEOUT_SEC = 3600s. It is too long and will blocking other DDL tasks. |
|
You're right, there is a bug in What do you think? Btw, could you please add a test? It can be simple stateless test with |
|
@tavplubix You are right. I have another commit. ^-^ |
|
Take a look at |
Backport #19684 to 21.1: Should fail ddl query as soon as possible if table is shutdown
Backport #19684 to 20.12: Should fail ddl query as soon as possible if table is shutdown
Backport #19684 to 20.11: Should fail ddl query as soon as possible if table is shutdown
Backport #19684 to 21.2: Should fail ddl query as soon as possible if table is shutdown
Backport #19684 to 20.8: Should fail ddl query as soon as possible if table is shutdown
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Background thread which executes
ON CLUSTERqueries might hang waiting for dropped replicated table to do something. It's fixed.Detailed description / Documentation draft:
Check table status during ddl execution. Set task status to exception if the table is shutdown by drop command or others.