Skip to content

Make sure that zookeeper is finalized on shutdown - #93602

Merged
azat merged 1 commit into
ClickHouse:masterfrom
azat:zk-shutdown
Jan 8, 2026
Merged

azat merged 1 commit into
ClickHouse:masterfrom
azat:zk-shutdown

Conversation

@azat

@azat azat commented Jan 7, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Make sure that zookeeper is finalized on shutdown (fix possible hung on shutdown in very unlikely cases)

Otherwise if someone (though this should not happen) will still hold shared_ptr, then, it won't be finalized, and it will block shutdown since receive/send threads will be active.

@clickhouse-gh

clickhouse-gh Bot commented Jan 7, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [6723ea3]

Summary: ❌

job_name test_name status info comment
Stateless tests (arm_asan, targeted) failure
01459_manual_write_to_replicas_quorum_detach_attach FAIL cidb, issue
Stateless tests (amd_binary, ParallelReplicas, s3 storage, parallel) failure
03514_grace_hash_join_logical_error FAIL cidb
Stateless tests (amd_tsan, parallel) failure
02572_query_views_log_background_thread FAIL cidb
Integration tests (amd_tsan, 5/6) failure
test_storage_s3_queue/test_5.py::test_failure_in_the_middle FAIL cidb, issue
test_storage_s3_queue/test_5.py::test_disable_streaming FAIL cidb, issue
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: (STID: 1941-1bfa) FAIL cidb, issue
Finish Workflow failure
python3 ./ci/jobs/scripts/workflow_hooks/new_tests_check.py failure

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Jan 7, 2026
@azat

azat commented Jan 7, 2026

Copy link
Copy Markdown
Member Author

I'm going to backport it

@azat azat added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Jan 7, 2026
@azat
azat enabled auto-merge January 7, 2026 19:13
Otherwise if someone (though this should not happen) will still hold
shared_ptr, then, it won't be finalized, and it will block shutdown
since receive/send threads will be active.
@azat
azat added this pull request to the merge queue Jan 8, 2026
Merged via the queue into ClickHouse:master with commit 20d0698 Jan 8, 2026
121 of 127 checks passed
@azat
azat deleted the zk-shutdown branch January 8, 2026 08:20
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jan 8, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jan 8, 2026
clickhouse-gh Bot added a commit that referenced this pull request Jan 8, 2026
Backport #93602 to 25.10: Make sure that zookeeper is finalized on shutdown
clickhouse-gh Bot added a commit that referenced this pull request Jan 8, 2026
Backport #93602 to 25.12: Make sure that zookeeper is finalized on shutdown
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jan 8, 2026
clickhouse-gh Bot added a commit that referenced this pull request Jan 8, 2026
Backport #93602 to 25.8: Make sure that zookeeper is finalized on shutdown
azat added a commit that referenced this pull request Jan 8, 2026
Backport #93602 to 25.11: Make sure that zookeeper is finalized on shutdown
azat added a commit that referenced this pull request Jan 8, 2026
Backport #93602 to 25.3: Make sure that zookeeper is finalized on shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants