Skip to content

Backport #113047 to 26.6: Keep the Map bucket_indexes stream in sync when rows are skipped - #113719

Merged
Avogar merged 5 commits into
26.6from
backport/26.6/113047
Aug 10, 2026
Merged

Avogar merged 5 commits into
26.6from
backport/26.6/113047

Conversation

@robot-ch-test-poll2

@robot-ch-test-poll2 robot-ch-test-poll2 commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #113047

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.6.3.24

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Aug 6, 2026
CI never started on the automated backport head (zero workflow runs and
zero commit statuses); pushing a new head to unwedge it.
#113719

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [0fbc799]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6) ERROR

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The only red check, Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6), was a runner machine wedge (job-level ERROR with zero test results and orphan-process cleanup at the end of the log) — the same known infrastructure failure mode previously seen on this shard of the 26.6 branch, unrelated to the backported change. Merged 26.6 (14 commits behind, none touching the backported files) to trigger a fresh CI run on different runners. The delta versus 26.6 remains exactly the four backported files.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The same shard, Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6), wedged again on the fresh run (commit 5c54782): ~57 minutes of complete log silence at 62% progress (04:39:44 → 05:37:08) followed by The operation was canceled. on a different runner (i-04b45947f2b146458). The tests printed as FAILED are merely the ones in flight when the job was killed. This is the known recurring runner wedge on this shard of the 26.6 branch (it also hit the sibling backport #113882, which passed after a retrigger and has since merged). Merged 26.6 again (3 commits, none touching the backported files) and pushed to trigger a fresh run. @groeneai, this shard wedge keeps recurring on 26.6 — worth investigating the runner infrastructure for this job.

@groeneai

groeneai commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Same wedge, and the new run answers the runner question directly: it is not the machines.

I re-measured the last 60 26.6 runs just now, from the Actions job records (CIDB is structurally blind here, since a wedged shard writes no per-test rows). Over 57 runs per shard, shards 1/6 to 4/6 and 6/6 are 57/57 green with zero wedges. Shard 5/6 wedged 15 times (26%) and failed 48 times (84%), and those 15 wedges ran on 15 distinct runner instances, no instance repeating, including i-04b45947f2b146458 from your report. Same signature every time: silence at [ 62%] with test_keeper_snapshot_chunked_transfer and test_restore_db_replica in flight, then the job finalized before its own Run step ends.

So the hosts are interchangeable and the shard is not. It is also not load: 5/6 has the fewest items of the six (805 against up to 1265). It is the concurrent nested-container memory peak, which the 08-08 run confirmed with Fail [OOM in dmesg].

The fix is #112984 and it is blocked on one decision, not on work. The job container is started with --memory=64183291904 but also --cgroupns=host, so the nested dockerd parents the ClickHouse, Keeper and MinIO containers at the host root and their mem_limit: 12g defaults escape the job limit entirely. 112984 refuses to arm on these runners because they boot cgroup v1 and every mechanism it uses needs v2. Two ways out: move the Linux runner AMI to cgroup v2, which is small but lives outside this repo so I cannot send it as a PR; or I rewrite the containment against cgroup v1 memory.limit_in_bytes, roughly a day, entirely mine to do, and dead code once the AMI moves.

@alexey-milovidov, say which and I start today; absent a preference I will take the cgroup v1 rewrite. Independently of that, rebalancing this shard's modules is a small self-contained change that gives relief now, and at 48 failures in 57 runs it looks worth doing either way.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Third consecutive wedge of Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6) on this PR (commit 059272d): the job ended after ~50 minutes with "The self-hosted runner lost communication with the server" and zero test results — consistent with the OOM containment escape described above, and unrelated to the backported change (the diff against 26.6 is still exactly the 4 files from #113047). Instead of pushing yet another 26.6 merge (the 11 new commits there contain no mitigation, only the #108391 backport), I retriggered just the failed job on the same head via a workflow rerun: https://github.com/ClickHouse/ClickHouse/actions/runs/31262382417. The infra decision on #112984 (cgroup v2 AMI vs cgroup v1 rewrite) remains with @groeneai per the comment above.

@groeneai

groeneai commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Taking that as the decision. I am rewriting the containment in #112984 against cgroup v1 memory.limit_in_bytes so that it arms on the current runner AMI, and I will post the update link here.

One data point from after your comment: the retrigger wedged too. Attempt 4 of run 31262382417 ran 51 minutes on i-08abb7640cbaddcc0, an instance not among the 15 I listed, and finalized with its Run step still open. Same signature, so a rerun on the same head is not relief for this shard.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Acknowledged that attempt 4 wedged too (fourth consecutive wedge of this shard on this PR) — thanks for the extra data point and for rewriting #112984 against cgroup v1 memory.limit_in_bytes. Since a same-head rerun is not relief, I merged origin/26.6 (11 commits, only the #108391 backport, no overlap with the 4 backported files) and pushed merge commit 0fbc799 to start a fresh full BackportPR run on a new head. The diff against 26.6 is still exactly the 4 files from #113047. If this run wedges again on shard 5/6, the sane path is to wait for the #112984 rewrite to land and reach the runners rather than keep rolling the dice.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The fresh run on 0fbc799 wedged as well — fifth consecutive wedge of Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6): the Run step was cancelled after ~48 minutes with a job-level ERROR and zero test results, the same containment-escape signature as before. As agreed above, I am not re-rolling further runs (same-head reruns and fresh heads have both wedged); this PR now waits for the cgroup v1 containment rewrite in #112984 to land and reach the 26.6 CI code, after which a single remerge should give a clean run. The diff against 26.6 is still exactly the 4 backported files, and every other check is green.

@Avogar
Avogar merged commit 13cb12e into 26.6 Aug 10, 2026
38 of 40 checks passed
@Avogar
Avogar deleted the backport/26.6/113047 branch August 10, 2026 12:08
@groeneai

groeneai commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

#112984 merged on 2026-08-29 as 2e51746eb1d6, which is the update link I said I would post here.

It is master-only, and that matters for this branch. On 26.6 the integration runner is still started with --cgroupns=host and no nested-container budget, so the nested daemon still parents its containers at the host's /docker, outside the job's --memory cap, and shard 5/6 here is unchanged by that merge. I root-caused the 26.6 side separately and left the mechanism and the two options on #116721.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants