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
clickhouse don't graceful shutdown on systemctl stop clickhouse-server but no any errors in logs #31478
Comments
SYSTEM SHUTDOWN Query create the same: 2021.11.17 19:34:25.995307 [ 9338 ] {45e11e5e-487f-46b1-8505-cc9be54c8bcd} executeQuery: (from 127.0.0.1:55602) SYSTEM SHUTDOWN |
zookeeper is_active flag on mergetreereplicated tables unreleased too |
this behaviour is known and
This is the key line. https://github.com/ClickHouse/ClickHouse/blob/master/programs/server/Server.cpp#L1586-L1597 |
@nvartolomei It still has to gracefully close ZooKeeper sessions. |
@nvartolomei by design not delete status file on shutdown Force close clients connection is not matter. |
Same story. Clickhouse always report error "Replica appears to be already active" on startup and table switched to read write mode only after few attempts and 30 seconds:
debian 9, clickhouse 21.8.14.5, zookeeper 3.4.13. |
In AWS ECS when mounting /var/lib/clickhouse to EFS after restarting container, I see: and
Maybe someone knows, how to deal with this? |
How to reproduce
systemctl restart clickhouse-server
The text was updated successfully, but these errors were encountered: