Skip to content

Set ZooKeeper component in unfreezePartitionsByMatcher - #99630

Merged
Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:fix/unfreeze-missing-component
Mar 17, 2026
Merged

Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:fix/unfreeze-missing-component

Conversation

@Algunenano

@Algunenano Algunenano commented Mar 16, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #96051 — MergeTreeData::unfreezePartitionsByMatcher was missing a Coordination::setCurrentComponent guard, causing a LOGICAL_ERROR exception when enforce_component_tracking is enabled (SharedCatalog with meta storage in keeper).

Failed report: https://d1k2gkhrlfqv31.cloudfront.net/clickhouse-test-reports-private/json.html?PR=52290&sha=c7313ec1fda3fdda8147d312f770824667ffe879&name_0=PR&name_1=Stress%20test%20%28arm_asan%2C%20SharedCatalog%2C%20meta%20storage%20in%20keeper%29

CC @antonio2368

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.3.1.747

@clickhouse-gh

clickhouse-gh Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [64d0cff]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_debug, distributed plan, s3 storage, sequential) failure
03642_system_instrument_multiple_handlers FAIL cidb IGNORED

AI Review

Summary

This PR adds Coordination::setCurrentComponent at the start of MergeTreeData::unfreezePartitionsByMatcher, matching component-tracking expectations in Keeper-backed metadata paths. Based on the one-line diff and surrounding context, this is a targeted correctness fix for the reported Logical error: Current component is empty... exception, and I did not find new correctness, safety, or performance risks introduced by the change.

ClickHouse Rules

Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsHistory.cpp ➖
Safe rollout ✅
Compilation time ✅

Final Verdict

  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Mar 16, 2026
@clickhouse-gh

clickhouse-gh Bot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 83.80% 83.70% -0.10%
Functions 23.90% 23.90% +0.00%
Branches 76.30% 76.30% +0.00%

PR changed lines: PR changed-lines coverage: 100.00% (4/4, 0 noise lines excluded)
Diff coverage report
Uncovered code

@Algunenano

Copy link
Copy Markdown
Member Author

Fix for 03642_system_instrument_multiple_handlers in #99672

@Algunenano
Algunenano enabled auto-merge March 17, 2026 10:44
@Algunenano
Algunenano added this pull request to the merge queue Mar 17, 2026
Merged via the queue into ClickHouse:master with commit 7127616 Mar 17, 2026
315 of 318 checks passed
@Algunenano
Algunenano deleted the fix/unfreeze-missing-component branch March 17, 2026 11:15
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci 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.

3 participants