Skip to content

Improve Netty4IncrementalRequestHandlingIT #127111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DaveCTurner
Copy link
Contributor

  • Verifies that each call to Netty4HttpRequestBodyStream#next yields
    exactly one chunk (or the stream is closed) since the
    IncrementalBulkService relies on this property.

  • Replaces several busy-waits with ones that block on a future for
    faster test execution.

  • Replaces several hard-coded constants with randomized values to
    clarify that the precise value does not matter to the test.

  • Reduces the use of unnecessary abbreviations in names.

  • Reduce the use of global static state in favour of node-local
    components.

* Verifies that each call to `Netty4HttpRequestBodyStream#next` yields
  exactly one chunk (or the stream is closed) since the
  `IncrementalBulkService` relies on this property.

* Replaces several busy-waits with ones that block on a future for
  faster test execution.

* Replaces several hard-coded constants with randomized values to
  clarify that the precise value does not matter to the test.

* Reduces the use of unnecessary abbreviations in names.

* Reduce the use of global static state in favour of node-local
  components.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Network Http and internode communication implementations v9.1.0 labels Apr 21, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Apr 21, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@mhl-b mhl-b left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Network Http and internode communication implementations Team:Distributed Coordination Meta label for Distributed Coordination team >test Issues or PRs that are addressing/adding tests v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants