Skip to content

Stable 25.3 Backport of #89127 - Fix TTL merge bug - #2884

Merged
zvonand merged 2 commits into
releases/25.3.14from
backports/releases/25.3.14/89127
Nov 19, 2026
Merged

zvonand merged 2 commits into
releases/25.3.14from
backports/releases/25.3.14/89127

Conversation

@blau-ai

@blau-ai blau-ai commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

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 to CHANGELOG.md):

Prevent TTL merge counter leaks when exceptions occur during merge preparation. Resolves ClickHouse#89019 (ClickHouse#89127 by @save-my-heart)

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

@zvonand

zvonand commented Nov 19, 2026

Copy link
Copy Markdown
Member

@blau-ai

@blau-ai

blau-ai commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

CI triage for 93f9ea9: none of the 4 failures come from this PR

The PR changes only src/Storages/StorageMergeTree.cpp. It wraps the TTL-merge tagger creation in try/catch and calls cancelMergeWithTTL() if that creation throws. Builds pass, and every stateless, stateful, integration and regression suite that finished is green.

Check Verdict
Integration tests (asan, old analyzer)-4, shard 5/8 Infra: the runner was lost
Compatibility check (release) Infra: DNS failure inside the test container
Docker keeper image Infra: docker buildx driver on this runner
DCO Not about the code: a commit has no sign-off. It also fails on sibling PRs #2894 and #2817

1. Integration tests (asan, old analyzer)-4 (job)

  • Job annotation: The self-hosted runner lost communication with the server.
  • The job stopped at the Run step, so it uploaded no log and no [5/8] report (the report URL returns 404). The other 7 shards passed with 0 failures (408–465 tests each).
  • Next step: re-run this job. No tests failed; the shard never finished.

2. Compatibility check (release): Old ubuntu:12.04 failed

3. Docker keeper image

4. DCO


Suggested fixes for PR-caused failures: none. Re-run the integration shard, compatibility check and keeper image jobs; I expect them to pass.

About the backport itself: the diff matches upstream ClickHouse#89127. Because bookMergeWithTTL() is called before the try block, the catch (...) that calls cancelMergeWithTTL() and then rethrows leaves the TTL-merge counter balanced, and once CurrentlyMergingPartsTagger has been built, nothing else can throw before the return.

@zvonand zvonand added the verified Approved for release label Nov 19, 2026
@zvonand
zvonand merged commit f3ddf14 into releases/25.3.14 Nov 19, 2026
256 of 262 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants