Skip to content

Conversation

mhl-b
Copy link
Contributor

@mhl-b mhl-b commented Aug 29, 2025

Currently we assume when Transfer-Encoding: chunked there is non-zero payload. It appears not always true, #133408.

This PR ensures that Transfer-Encoding: chunked always has content by removing encoding from empty payload. When we receive HTTP request we look at the encoding, if it's chunked then we wait for the first chunk to see if it's empty. If that's the case we remove encoding and process request as non-chunked.

@mhl-b mhl-b requested a review from DaveCTurner August 29, 2025 00:03
@mhl-b mhl-b added >bug :Distributed Coordination/Network Http and internode communication implementations Team:Distributed Coordination Meta label for Distributed Coordination team v9.2.0 labels Aug 29, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @mhl-b, I've created a changelog YAML for you.

Copy link
Contributor

@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

Also deserves a backport to 9.1 since we're considering it a bug. I don't think it affects 8.19 tho, we did not apply the streaming bulk request changes there.

@mhl-b mhl-b added auto-backport Automatically create backport pull requests when merged v9.1.0 v9.1.4 and removed v9.1.0 labels Sep 2, 2025
@mhl-b mhl-b merged commit 937f80c into elastic:main Sep 3, 2025
33 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :Distributed Coordination/Network Http and internode communication implementations Team:Distributed Coordination Meta label for Distributed Coordination team v9.1.4 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants