Repository navigation
Set yet another current Keeper component - #113295
Conversation
…rate Reading part data files from the codec block counts source may issue Keeper requests, which require the current component to be set for the scope via `Coordination::setCurrentComponent`. Without it the query failed with a logical error: "Current component is empty, please set it for your scope using Coordination::setCurrentComponent". Co-Authored-By: Claude Fable 5 <[email protected]>
|
Workflow [PR], commit [084e931] Summary: ✅
AI ReviewSummaryThis PR adds a missing PR Metadata
Tests
Final VerdictNeeds changes before merge: add a focused regression for the LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 1/1 (100.00%) · Uncovered code |
…nts-keeper-component
| Chunk generate() override | ||
| { | ||
| /// Reading part files may issue Keeper requests, which require a component to be set for the scope. | ||
| auto component_guard = Coordination::setCurrentComponent("MergeTreeCodecBlockCountsSource::generate"); |
There was a problem hiding this comment.
This looks like the right executor-thread scope for the component guard, but the fix still needs a focused regression. None of the existing mergeTreeCodecBlockCounts tests exercise enforce_keeper_component_tracking=1, and the missing-guard fixes in this area have usually needed their own zookeeper/integration repro to stay pinned down. A minimal test that queries mergeTreeCodecBlockCounts on the Keeper-backed part-storage mode that triggers this read would make the change much safer.
| Chunk generate() override | ||
| { | ||
| /// Reading part files may issue Keeper requests, which require a component to be set for the scope. | ||
| auto component_guard = Coordination::setCurrentComponent("MergeTreeCodecBlockCountsSource::generate"); |
There was a problem hiding this comment.
The PR template currently tags this as CI Fix or Improvement, but the code change is a runtime guard for a documented server setting, not a CI harness change. Please retag it as Bug Fix and add a user-facing entry, for example: Fixes a LOGICAL_ERROR (Current component is empty) when querying mergeTreeCodecBlockCounts with enforce_keeper_component_tracking enabled and the table's part files use Keeper-backed metadata.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Version info
26.8.1.804(included in26.8and later)