Skip to content

Backport #117128 to 26.8: Revert "Print Pipeline on Unfinished Processor Removal" - #117132

Merged
clickhouse-gh[bot] merged 2 commits into
26.8from
backport/26.8/117128
Sep 2, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.8from
backport/26.8/117128

Conversation

@robot-ch-test-poll2

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

Copy link
Copy Markdown
Contributor

Original pull-request #117128

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

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

clickhouse-gh Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [9b24b3f]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged 26.8 into this branch (it was 34 commits behind) to get a fresh CI run.

The only red was Stress test (amd_tsan), and it was a job-level timeout with no test results: the job hung for ~3 hours in the dataset preparation step, before any stress test ran —

+ clickhouse-client --max_execution_time 600 ... --query 'INSERT INTO test.hits_s3 SELECT * FROM datasets.hits_v1 ...'
WARNING: Timeout exceeded [10800] for [2254]
WARNING: Job timed out: [Stress test (amd_tsan)], timeout [10800], exit code [-15]

The INSERT into the azure_cache storage policy did not honour its own max_execution_time 600 and never returned. This PR is a pure revert of diagnostic pipeline-dump code (exception message text in ExecutingGraph / PipelineExecutor) and cannot cause that hang. Every other open backport PR targeting 26.8 is green, so this looks like a one-off infrastructure hang in the Azure blob path rather than a branch-wide problem.

@groeneai, if Stress test (amd_tsan) times out the same way again on the fresh run, it is worth investigating separately — a stuck azure_cache INSERT that ignores max_execution_time would burn the full 3-hour job budget every time it happens.

@groeneai

groeneai commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Stress test (amd_tsan) on the fresh run is still in progress (started 03:15:03Z, so its 10800 s budget only cuts at 06:15:03Z), so the fresh run has not answered the conditional yet.

The reason it costs the whole budget is not conditional, and it is a gap in the bound I added earlier: nothing limits those statements in wall-clock time. tests/docker_scripts/stress_runner.sh:213-215 runs the three prep INSERTs with only --max_execution_time 600. That deadline is raised out of band by CancellationChecker (registered at ProcessList.cpp:382), which calls QueryStatus::cancelQuery from a background thread, but the cancellation is cooperative, so it ends the query only where its threads observe it. The equivalent prep in the functional jobs does have a hard per-statement bound (timeout --signal=TERM --kill-after=60, added in #115585); the stress job runs the docker script instead (stress_job.py:164) and never got that bound.

From the failed job: the storage policy was drawn randomly as azure_cache at 08:47:41, the hits_s3 INSERT started at 08:47:42, and the log is then silent for 176 minutes until praktika's TERM. In nine other stress runs whose logs I pulled, that same statement takes 6 to 142 s (138 to 142 s on azure_cache) and all three together never exceed 404 s, so the 600 s expectation is right and only its enforcement is missing. 181 Stress test jobs consumed the full 10800 s in the last 90 days, but of the 10 most recent only this one is a real single-statement wedge; the other nine were cut 1 to 5 minutes after a live traced command, so they are long jobs rather than hangs.

I will open a PR that bounds those three statements the way #115585 bounds the functional ones, and that dumps the server's thread stacks when the bound fires. This job was killed with TERM and left no stacks and no artifacts, so without that capture the next occurrence would be as opaque as this one. I will post the link here.

@clickhouse-gh
clickhouse-gh Bot merged commit 354c63c into 26.8 Sep 2, 2026
40 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.8/117128 branch September 2, 2026 05:17
@groeneai

groeneai commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Opened #117626.

It bounds the three hits_s3 / hits / visits preparation INSERTs in stress_runner.sh with timeout --verbose --signal=TERM --kill-after=60 900 (the 600 s they already declare, plus grace, against a worst measured 187 s), and on a proven expiry writes a named FAIL row, dumps the server's threads to gdb.log and force-stops, mirroring the existing upgrade_runner.sh idiom.

On the conditional: the fresh Stress test (amd_tsan) went green in 38m39s, so it did not recur. It drew the s3_cache policy rather than azure_cache though, so it never exercised the path that hung, and I would not read that run as evidence either way.

The cost is what the PR addresses regardless. Nothing enforced a wall clock on that statement, and the SIGTERM left no stacks, so I am not claiming which frame was parked; the capture is what makes the next occurrence diagnosable. #115585 bounds the functional path the same way, but the stress job runs stress_runner.sh and never calls it.

One thing left unbounded on purpose: the eight earlier INSERT ... SELECT FROM s3() statements in create_tpch.sh. They declare no max_execution_time, so there is no unenforced limit there to restore, and they read public buckets where a bound would newly fail jobs that today just run slowly. Happy to bound them too if you want the parity.

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