Skip to content
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

Save duplicate REST client in ESRestTestCase #117910

Merged

Conversation

original-brownbear
Copy link
Member

I debugged some tests today and noticed that these two clients are the same in almost all cases, no need to use extra connections. Might give us a small speedup (from fewer context switches, tcp being tcp etc.) and saves precious ports/FDs/memory for these tests that tend to be quite slow relative to the node client based tests.

I debugged some tests today and noticed that these two clients
are the same in almost all cases, no need to use extra connections.
Might give usa small speedup for these tests that tend to be quite slow
relative to the node client based tests.
@original-brownbear original-brownbear added >non-issue :Delivery/Build Build or test infrastructure labels Dec 3, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@elasticsearchmachine elasticsearchmachine added Team:Delivery Meta label for Delivery team v9.0.0 labels Dec 3, 2024
Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear
Copy link
Member Author

Thanks Mark!

@original-brownbear original-brownbear added the auto-backport Automatically create backport pull requests when merged label Dec 5, 2024
@original-brownbear original-brownbear merged commit 584918e into elastic:main Dec 5, 2024
15 of 16 checks passed
@original-brownbear original-brownbear deleted the dedup-rest-clients branch December 5, 2024 19:27
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Dec 5, 2024
I debugged some tests today and noticed that these two clients
are the same in almost all cases, no need to use extra connections.
Might give usa small speedup for these tests that tend to be quite slow
relative to the node client based tests.
elasticsearchmachine pushed a commit that referenced this pull request Dec 5, 2024
I debugged some tests today and noticed that these two clients
are the same in almost all cases, no need to use extra connections.
Might give usa small speedup for these tests that tend to be quite slow
relative to the node client based tests.
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 :Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants