Skip to content

Backport #113430 to 26.6: Recover a dead py4j gateway in ResilientSparkSession - #114972

Merged
clickhouse-gh[bot] merged 2 commits into
26.6from
backport/26.6/113430
Aug 16, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.6from
backport/26.6/113430

Conversation

@robot-ch-test-poll2

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

Copy link
Copy Markdown
Contributor

Original pull-request #113430

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.45

@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 15, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [12ddfb2]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114972&sha=0318e799c712d8ca60369f261c9e5c4a6132594a&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%205%2F6%29. The job was cancelled after test_keeper_snapshot_chunked_transfer/test.py::test_recover_from_snapshot_sent_by_old_leader[remote_disk] ran for about 21 minutes; the changed Spark recovery test is not scheduled in this shard. #113992 already addresses the matching Keeper compatibility path. Please provide a 26.6-appropriate fix or backport if one is needed.

@groeneai

Copy link
Copy Markdown
Collaborator

No 26.6-specific fix or backport is needed here. The cancel is not a single-test hang, and
#113992 does not address it.

It is a whole-runner stall, not a 21-minute test. All three xdist workers stop emitting at
the same instant and resume at the same instant, and the test sitting on the boundary changes
between attempts:

attempt silent gap test at the boundary
1 52.9 min sent_by_old_leader[local_disk]
2 39.5 min test_restore_db_replica (not Keeper)
3 21.6 min sent_by_old_leader[remote_disk]

Attempt 3 is the 21 minutes in your message: last line 00:56:16, next line 01:17:52, and then
gw0, gw1, gw2 all report FAILED inside the same 0.4 s. There is no Timeout (>900.0s)
line, no === FAILURES section and no test summary in any of the four failing runs, so the
pytest timeout never fired. The runner host itself is starved, not just pytest: after the
cancel, its own cleanup steps stall (git version 109 s on one run, Removing HTTP extra header 2308 s on another).

The test is fine on 26.6. On the one recent 26.6 run where this shard passed, the two
params took 10 s and 21 s; on master they took 12 s and 14 s.

It is a shard condition, not the backport. Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6) failed 7 of the last 8 26.6 ReleaseBranchCI runs with no backport involved,
while the same shard passed 4 of 4 scheduled master runs. test.py is also the identical blob
(0255649f) on 26.6 and master, so there is nothing to port.

On #113992: it is test-only (configs/quorum_reads.xml plus test.py) and it removes a
read-drop race in the pinned 25.3/25.12 image whose symptom is a real 900 s kazoo timeout with
a traceback. Different signature. It is also still open, and the backport automation only scans
merged PRs, so no label can act on it yet. Its CI is green; I will ask for a review there rather
than request a label.

The remaining gap is the runner wedge on that shard, which is the class I am fixing in #112984
(open, waiting on manual approve). The cancel kills the job before the reporting stage, so the
job's own dmesg/OOM readout never runs; if you want that proven rather than inferred, I can add
the readout to the cancel path.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Reviewed the current head, the full CI report, and every review thread. There are no unresolved review threads. The sole failing job was cancelled without a failed test result; its boundary test varies across retries and is not the Spark recovery test added by this backport. The existing runner-stall analysis is sufficient, so no 26.6 code change or rerun is warranted for this PR.

@clickhouse-gh
clickhouse-gh Bot merged commit 694618a into 26.6 Aug 16, 2026
112 of 115 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/113430 branch August 16, 2026 21:00
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.

4 participants