Repository navigation
Conversation
Signed-off-by: 7487 <1042653432@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Errorthrown by a streaming request-body writer from crossing Apache HttpClient's execution boundary, where it would close the shared connection manager.Errorinstance after Apache has cleaned up the failed request.No public API, configuration, default, retry, or wire-format behavior changes.
Closes #3453
Verification
IllegalStateException: Connection pool shut down.HttpAPIClientHelperTest: 54 tests passed.client-v2unit tests: 996 tests passed.client-v2integration run: 1,893/1,896 tests passed; the same three environment-sensitive failures reproduced unchanged on a clean27d63e9worktree. A final verify excluding those three affected test classes passed 1,756/1,756 integration tests and 996/996 unit tests.git diff --checkpassed.mvn -Dj8 -DskipTests install: all modules built and packaged successfully.The repository-wide Spotless invocation currently reports 74 pre-existing files; neither touched Java file is among the violations when checked directly.
Checklist
Note
Medium Risk
Changes error-handling on the streaming insert HTTP path and connection-pool lifecycle; regression test covers the scenario but this is core transport behavior.
Overview
Fixes a bug where an
Errorfrom a streaming insert body callback could escape into Apache HttpClient and shut down the shared connection pool, breaking every later request on the sameClient.For callback-driven requests,
HttpAPIClientHelpernow captures the originalError, surfaces failure to Apache as anIOException, and rethrows the sameErrorinstance to the caller after the request path finishes. No public API or wire behavior changes.A WireMock regression test confirms the follow-up request still succeeds; features and changelog document isolated streaming-insert failures.
Reviewed by Cursor Bugbot for commit 2ef7ddc. Bugbot is set up for automated code reviews on this repo. Configure here.