Repository navigation
Conversation
|
Workflow [PR], commit [477b125] Summary: ❌
AI ReviewSummaryThis PR watches for early HTTP responses during non-blocking plain TCP body writes, while retaining blocking writes for TLS and Silk sockets. ❌ Block: the existing finding still holds at head Findings❌ Blockers
Tests
Final Verdict❌ Block. Handle the response arriving between the final check and a failed send, and add deterministic regression coverage. No additional new inline findings. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes59 object files changed (+24.05 KiB total), 2 added.
711 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units417 translation units recompiled, 2811 s compile time in total, 415 of them have a recent master baseline. |
…-plain-tcp # Conflicts: # src/Common/Silk/tests/gtest_silk_fiber_stream_socket.cpp # src/IO/SocketPeerClosed.cpp
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]>
`ScopedNonBlocking` moves from an anonymous namespace in
`src/IO/SocketPeerClosed.cpp` to `src/IO/ScopedNonBlocking.{h,cpp}`, so
that other code in `src/IO` can use it, and the includes that only it
needed are removed from `SocketPeerClosed.cpp`. The code is taken
unchanged from ClickHouse#131102.
No behavior change.
Related: ClickHouse#131084
Co-authored-by: Sema Checherinda <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Step 5 of #131084. The body writer has one loop over `waitForSendOrReceive`, `sendNow` and `receiveNow` for plain TCP, TLS and Silk fiber sockets. After a failed send it reads what arrived, so an error response before a reset is not lost (#131102 (comment)). `ready_to_send`, `HTTPSession::writeRawNonBlocking` and `SocketImpl::throttleSendBlocking` are removed.
Related: #131084
Related: #124326
Related: #124557
Step 5 of #131084. Stacked on #132376, the socket primitives for plain TCP, TLS and Silk fiber sockets.
2xxis finished after the body.Tests:
gtest_http_early_response.cppfor a plain and a TLS server (an error stops the body; an answer before the reset that fails the send; a reset without an answer; header limits during the body), the body on Silk fiber sockets, and the integration rows of #131333.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
While it sends the body of an HTTP request, ClickHouse now watches the connection for an early response, over HTTP and HTTPS. An error that the server sends before it reads the whole body, such as
NoSuchUploadfor an expired multipart upload, is now reported for every HTTP client (S3, Azure, theurlengine and others), and not retried as a network error.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131102]