Skip to content

Add tests for an early error response while an HTTP request body is sent - #131333

Merged
CheSema merged 1 commit into
ClickHouse:masterfrom
groeneai:tests-early-error-response-131084
Nov 16, 2026
Merged

CheSema merged 1 commit into
ClickHouse:masterfrom
groeneai:tests-early-error-response-131084

Conversation

@groeneai

@groeneai groeneai commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #131084
Related: #131102

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Description

The tests-only part of #131102, taken unchanged (the three files are byte-identical to its head 477b1251ec60), as asked in #131084 (comment):

  • broken_s3.py: the lingering mode of NoSuchUploadAction (answers before reading the body, then reads and drops up to 8 MiB of it before the reset, like AWS S3).
  • test_early_error_response_at_upload_is_not_retried: rows [1-0], [1-1000000] (the existing case), [lingering-0].
  • SilkFiberSocketTest.HTTPRequestBody (plain and TLS fiber sockets).

No server code is changed. On master c89eff2308d4 (debug build), each integration row passed 12 of 12 runs (one single run, 10 in a row, and one whole-module run with all 40 tests green), and in the 33 runs whose server log I checked, the 404 came through the early-response read of #124557. The gtest passed 50 times in a row for each instance.


Workflow [PR]
Sync PR [sync-upstream/pr/131333]

Version info

  • Merged into: 26.11.1.2430-master (included in 26.11 and later)

The tests-only part of ClickHouse#131102, unchanged: the `lingering` mode of
`NoSuchUploadAction` in the S3 mock, the early-error rows of
`test_early_error_response_at_upload_is_not_retried`, and the
`SilkFiberSocketTest.HTTPRequestBody` gtest. They pass on master, where
plain HTTP is handled by the read of ClickHouse#124557.

Related: ClickHouse#131084

Co-authored-by: Sema Checherinda <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 1 finding) plus my own cold review (2 nits). No change: the three files stay byte-identical to #131102.

# Sev Finding Verdict Evidence / action
1 ⚠️ The three rows share one oracle, so a mock that stops dropping the body or a throttler that never waits would go unnoticed DISAGREE These are the tests as written in #131102; [1-1000000] is the existing test, and the lingering drop was checked locally (8 MiB dropped; without the early 404 the row fails)

Severity: ❌ blocker / ⚠️ major / 💡 nit.

Session id: cron:clickhouse-review-slot-9:20261113-144011

@clickhouse-gh

clickhouse-gh Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [feb2566]

Summary: ✅


AI Review

Summary

Adds S3 early-error coverage for immediate and lingering connection closes, with and without upload throttling, plus an HTTP request-body round trip over plain and TLS Silk sockets. No actionable correctness or reliability findings at head feb2566fe1637cbae54bc9fec6b9cee5c6302007.

Missing context / blind spots
  • ⚠️ The relevant integration and unit jobs were pending in the Praktika report. No local ClickHouse build was available to rerun them. Runtime evidence is the author's reported 12 successful runs per integration case and 50 per Silk variant on master; completed CI results would independently confirm it.
Final Verdict

✅ Approve. No new inline findings.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 13, 2026
@CheSema CheSema added the can be tested Allows running workflows for external contributors label Nov 13, 2026
@CheSema CheSema self-assigned this Nov 13, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing feb2566fe with master 544355ca1 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Slowest function optimization changes (ThinLTO)

Median per-function time ratio to the master baseline: programs/clickhouse ×0.61, programs/clickhouse-keeper ×0.63 (each binary is linked separately, on a different machine and with different build flags); deltas below are relative to it.

Binary Function Master PR Δ vs median
programs/clickhouse DB::registerFunctionConversion(DB::FunctionFactory&) 5.7 s 9.5 s +6.0 s (+173%)
programs/clickhouse _ZN6detail10static_forITk7is_enumN2DB23AttributeUnderlyingTypeEZNS1_29callOnDictionaryAttributeType… 3.3 s 7.2 s +5.2 s (+258%)
Compile time of recompiled translation units

6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline.

Job report

@CheSema
CheSema enabled auto-merge November 13, 2026 16:38
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Nov 13, 2026
@CheSema
CheSema added this pull request to the merge queue Nov 13, 2026
@fm4v
fm4v removed this pull request from the merge queue due to a manual request Nov 13, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Nov 13, 2026
@alexey-milovidov
alexey-milovidov removed this pull request from the merge queue due to a manual request Nov 13, 2026
@CheSema
CheSema added this pull request to the merge queue Nov 16, 2026
Merged via the queue into ClickHouse:master with commit 148fb6a Nov 16, 2026
408 of 409 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 16, 2026
@clickhouse-gh clickhouse-gh Bot added comp-networking The connection layer under the protocols, on the server and on the client side: socket read / wri... and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-networking The connection layer under the protocols, on the server and on the client side: socket read / wri... pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants