Fix false-positive covered part startup check by alexey-milovidov · Pull Request #104516 · ClickHouse/ClickHouse · GitHub
Skip to content

Fix false-positive covered part startup check#104516

Merged
tiandiwonder merged 1 commit into
masterfrom
fix-logical-error-false
May 12, 2026
Merged

Fix false-positive covered part startup check#104516
tiandiwonder merged 1 commit into
masterfrom
fix-logical-error-false

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented May 10, 2026

Copy link
Copy Markdown
Member

Fix a false-positive startup paranoid check in replicated tables. A covered ZooKeeper part can be absent from disk after a local Active part supersedes it, and this state should not trigger Logical error: 'false' during StorageReplicatedMergeTree startup.

The failure was seen in stress tests from this examples query: https://play.clickhouse.com/play?user=play&run=1#U0VMRUNUIGNoZWNrX3N0YXJ0X3RpbWUsIGNoZWNrX25hbWUsIHRlc3RfbmFtZSwgcmVwb3J0X3VybApGUk9NIGNoZWNrcwpXSEVSRSAxCiAgICBBTkQgY2hlY2tfc3RhcnRfdGltZSA+PSBub3coKSAtIElOVEVSVkFMIDI0IEhPVVIKICAgIEFORCAoaGVhZF9yZWYgPSAnbWFzdGVyJyBBTkQgc3RhcnRzV2l0aChoZWFkX3JlcG8sICdDbGlja0hvdXNlLycpKQogICAgQU5EIHRlc3Rfc3RhdHVzICE9ICdTS0lQUEVEJwogICAgQU5EICh0ZXN0X3N0YXR1cyBMSUtFICdGJScgT1IgdGVzdF9zdGF0dXMgTElLRSAnRSUnKQogICAgQU5EIGNoZWNrX3N0YXR1cyAhPSAnc3VjY2VzcycKICAgIEFORCBjaGVja19uYW1lIE5PVCBMSUtFICdsaWJGdXp6ZXIlJwogICAgQU5EIGNoZWNrX25hbWUgIT0gJ0NsaWNrSG91c2UgS2VlcGVyIEplcHNlbicKICAgIEFORCBjaGVja19uYW1lIE5PVCBMSUtFICdJbnRlZ3JhdGlvbiB0ZXN0cyAoYW1kX2xsdm1fY292ZXJhZ2UlJwpPUkRFUiBCWSBjaGVja19zdGFydF90aW1lIERFU0M=

Related issue: #101070

Validated with ninja -C build programs/clickhouse, 04215_replicated_missing_covered_part_on_start, and 02369_lost_part_intersecting_merges.

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):

Not needed.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.545

@clickhouse-gh

clickhouse-gh Bot commented May 10, 2026

Copy link
Copy Markdown
Contributor

@clickhouse-gh clickhouse-gh Bot added the pr-ci label May 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented May 10, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.10% 84.10% +0.00%
Functions 91.10% 91.10% +0.00%
Branches 76.50% 76.60% +0.10%

Changed lines: 37.50% (3/8) | lost baseline coverage: 9 line(s) · Uncovered code

Full report · Diff report

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@groeneai, review this PR.

@groeneai

Copy link
Copy Markdown
Contributor

@grantholly-clickhouse grantholly-clickhouse self-requested a review May 11, 2026 23:40
@tiandiwonder tiandiwonder added this pull request to the merge queue May 12, 2026
Merged via the queue into master with commit aa18d4e May 12, 2026
165 checks passed
@tiandiwonder tiandiwonder deleted the fix-logical-error-false branch May 12, 2026 03:19
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 12, 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.

5 participants