Skip to content

Remove http object aggregator#112120

Closed
mhl-b wants to merge 1 commit intoelastic:partial-rest-requestsfrom
mhl-b:remove-http-aggregator
Closed

Remove http object aggregator#112120
mhl-b wants to merge 1 commit intoelastic:partial-rest-requestsfrom
mhl-b:remove-http-aggregator

Conversation

@mhl-b
Copy link
Copy Markdown
Contributor

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

WIP:

  • Handle 100 continue and 413/417

Done:

  • Aggregate chunks in BaseRestHandler.
  • Refactor Netty4HttpRequest, class become interface with 3 different implementations for Full/Stream/Exception variants.
  • Refactor Netty4HttpRequestBodyStream - use state-machine and state transitions: Queueing, Streaming, Draining(Discard), Completed. Better encapsulation, explicit handling for edge cases.
  • Add discard method to HttpBody.Stream. Required for handling non terminal errors that does not reach RestHandler, for example 400 BadRequest.
  • Add tracing handlers to HttpBody.Stream. Required for logging and metering. See HttpTracer.
  • Move ensureSafeBuffers from RestController to BaseRestHandler after aggregation.

@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 23, 2024
@mhl-b mhl-b closed this Aug 26, 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.

1 participant