Skip to content

Backport #100283 to 26.3: Validate Iceberg metadata file path for null bytes - #115430

Merged
alexey-milovidov merged 2 commits into
26.3from
backport/26.3/100283
Aug 20, 2026
Merged

alexey-milovidov merged 2 commits into
26.3from
backport/26.3/100283

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #100283

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

@robot-clickhouse robot-clickhouse added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Aug 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [2916698]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115430&sha=96dc6f30fffbdce99c132162e5bb5e98c838eabb&name_0=BackportPR&name_1=Config%20Workflow and provide a fix in a separate PR. Check CI DB failed with 500/Internal Server Error; no PR tests were run. If the fix is already in progress, link it here.

@groeneai

Copy link
Copy Markdown
Collaborator

Investigated. This is not a defect in this backport: the run was voided by praktika's Check CI DB precheck failing closed while play.clickhouse.com was shedding load. A fix is in progress and it is not mine, so linking it as you asked: #115436 by @ Felixoid, opened this morning.

What happened, from the job log of run 32239585918 (job 96027012360):

09:49:58  === Run script [Config Workflow], workflow [BackportPR] ===
09:50:30    Failure [Check CI DB]
09:50:30      | ERROR: No connection to CI DB [500/Internal Server Error]
09:50:31  ERROR: Run failed with exit code [1]
09:50:32  Code: 202. DB::Exception: Too many simultaneous queries. Maximum: 1000.
          (TOO_MANY_SIMULTANEOUS_QUERIES) (version 26.8.1.1653)   [x3]

Total job runtime 33 s against a 600 s allowance, so no timeout was involved. CIDB.check() (ci/praktika/cidb.py:406) issues SELECT 1 under for retry in range(2) and returns (False, ...) on any non-2xx. Both attempts ran between 09:50:27.0 and 09:50:30.9, about 1.9 s each, and both got HTTP 500 back; there is no exception line in the log, so these were prompt refusals rather than timeouts. The Code: 202 lines from the result insert a second later name the cause: the server was refusing new queries over the 1000 concurrent limit.

Why one failed probe voids the whole matrix. _check_db maps (False, ...) to Result.Status.FAIL (ci/praktika/native_jobs.py:548-561), Result.create_from propagates a FAIL child to the job, so Config Workflow fails and every dependee is DROPPED. The probe is also appended at :694, so it becomes the results[-1] that the 6 later gates test (:702, :720, :757, :793, :823, :924); that is why the docker digest stage, the filter hooks and Init Report never ran either. Check-run shape at 96dc6f30 was 1 failure + 31 skipped + 1 success, all reported completed, with zero test results.

Why #115436 is the right change. It routes check() through a shared _post_with_retries with retries=3 and time.sleep(2**retry), so the smoke test spans several seconds of wall clock instead of two immediate requests, and it turns a 200 with a non-JSON body into a returned failure instead of an unhandled ValueError out of response.json(). On the sufficiency for this specific event I want to be exact rather than reassuring: I cannot prove the window had closed, because this job's own result insert was still getting 500s when the process exited at 09:50:32.5. What I can show is that the shed was partial, not an outage: CIDB ingested 14,591 rows from 4 distinct commits during that same 09:50 minute. Against a concurrency-limit refusal that is intermittent on a per-second scale, spreading 3 attempts over several seconds is the correct lever, and I would not add anything to that PR.

Frequency, measured rather than estimated: over 180 days test_name = 'Check CI DB' has 86,190 OK rows and exactly 1 FAIL (PR 112949, 2026-08-02). Today's event is not in CIDB at all, because the failing probe is what writes there, so the true lifetime count is 2 and any CIDB-derived census of this failure is a lower bound by construction. Config Workflow failures today run 3 to 8 per hour against 250 to 720 successes: rare, but each occurrence costs a full matrix.

State of this PR: your 26.3 merge at 291669893f8b moved the head past the failing commit, and CI on the new head is progressing normally with Check CI DB green at 17:59:15Z. Nothing is stuck.

One point that #115436 deliberately does not address, which I raised in #113052 (comment) and nobody has ruled on: a CIDB outage long enough to exhaust any retry budget still turns an observability probe into a withheld test matrix, and the run then reports every check as completed with zero results. Better retries make that much less likely without changing the polarity, which may be the right scope. If you want the probe itself made non-blocking, say so and I will send that as a separate PR; I did not want to flip a deliberate fail-closed gate on my own judgement.

@alexey-milovidov
alexey-milovidov merged commit 124578e into 26.3 Aug 20, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.3/100283 branch August 20, 2026 14:43
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! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants