Skip to content

Stable 25.8 Backport of #89127 - Fix TTL merge bug - #2774

Merged
zvonand merged 1 commit into
stable-25.8from
backports/stable-25.8/89127
Nov 10, 2026
Merged

zvonand merged 1 commit into
stable-25.8from
backports/stable-25.8/89127

Conversation

@zvonand

@zvonand zvonand commented Nov 4, 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 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 added 25.8 25.8 Altinity Stable backport Backport stable stable-25.8 labels Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

Workflow [PR], commit [34d6ae4]

@zvonand

zvonand commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

@blau-ai

@blau-ai

blau-ai commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

CI triage for 34d6ae4684

3 failing checks. None are caused by this PR: 1 known upstream flaky crash, 1 infra failure (Docker Hub 502), 1 DCO/process check. The aggregate PR gate is red only because of these. Nothing in the code needs to change.

Check Classification PR-caused?
Stateless tests (amd_ubsan, parallel) Known flaky crash in a ReplicatedMergeTree paranoid check ❌ No
Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, sequential) Infra: Docker image pull failed ❌ No
DCO Missing sign-off on the upstream merge commit ❌ No (process only)

1. Stateless tests (amd_ubsan, parallel): known flaky crash

The server aborted on a LOGICAL_ERROR, and every test still running was then reported as failed (03573_create_user_query_parameters_format: server died, plus Exception in test runner, Killed by signal, Fatal messages, Logical error thrown). Those are all side effects of the one crash:

<Fatal> : Logical error: 'Part all_82_82_0 from table test_1h68stqp.alter_table0 (...) remains in ZooKeeper after DROP_RANGE all_0_82_999999999_999999999'.
6. ./src/Storages/StorageReplicatedMergeTree.cpp:2713: DB::paranoidCheckForCoveredPartsInZooKeeper ...

2. Stateless tests (…, DatabaseReplicated, sequential): infra

The job never started any tests because pulling the test image failed:

docker: unknown: failed to copy: httpReadSeeker: failed open: unexpected status from GET request to https://registry-1.docker.io/v2/altinityinfra/stateless-test/blobs/sha256:050d288c…: 502 Bad Gateway
ERROR: Job killed, exit code [125]
  • Next step: re-run the job.

3. DCO

The only commit is the upstream merge commit 34d6ae4684 (Merge pull request #89127 …), which has no Signed-off-by. This happens on every cherry-picked upstream backport: #2819, a stable-25.8 backport that was merged, failed DCO the same way. If your process needs DCO to be green, set it manually or override it as usual for backports. Don't rewrite the commit.


Diff sanity check: the backport matches upstream ClickHouse#89127: a 13+/3− change that keeps the TTL-merge counter balanced when CurrentlyMergingPartsTagger throws (for example, when there isn't enough disk space). Builds passed, and every other stateless, integration and regression suite on this SHA is green. After re-running the two stateless jobs, this should be ready to merge.

@zvonand
zvonand merged commit 0c12789 into stable-25.8 Nov 10, 2026
236 of 242 checks passed
@zvonand zvonand added the verified Approved for release label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

25.8 25.8 Altinity Stable backport Backport stable stable-25.8 verified Approved for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants