Skip to content

Release stream chunk queue on bad request#112227

Merged
mhl-b merged 1 commit intoelastic:partial-rest-requestsfrom
mhl-b:release-stream-on-bad-request
Aug 27, 2024
Merged

Release stream chunk queue on bad request#112227
mhl-b merged 1 commit intoelastic:partial-rest-requestsfrom
mhl-b:release-stream-on-bad-request

Conversation

@mhl-b
Copy link
Copy Markdown
Contributor

@mhl-b mhl-b commented Aug 27, 2024

Some bad http requests never reach rest handler. In case of partial rest request there might be few http chunks in the stream queue that will leak. This PR release queued requests on HttpRequest.close(), which is invoked on dispatchBadRequest in RestController.

@mhl-b mhl-b added >enhancement :Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team. v8.16.0 labels Aug 27, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhl-b mhl-b merged commit 5757e00 into elastic:partial-rest-requests Aug 27, 2024
Tim-Brooks pushed a commit to Tim-Brooks/elasticsearch that referenced this pull request Sep 19, 2024
Tim-Brooks added a commit that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations >enhancement Team:Distributed Meta label for distributed team. v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants