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

Backport aiohttp conditional HEAD bug workaround #2102

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Nov 4, 2022

In older versions of aiohttp, HEAD requests don't mark the connection as not reusable, which is why GET was used instead. But this means indices.exists becomes indices.get which can be prohibitively slow on indices with large mappings, so we want to use HEAD for aiohttp versions that don't have this bug.

This backports the following pull requests to the 7.17 branch to make it easier for Rally to upgrade to elasticsearch-py 8.x:

In older versions of aiohttp, HEAD requests don't mark the connection as
not reusable, which is why GET was used instead. But this means
`indices.exists` becomes `indices.get` which can be prohibitively slow
on indices with large mappings, so we want to use `HEAD` for aiohttp
versions that don't have this bug.

This backports the following pull requests to the 7.17 branch to make it
easier for Rally to upgrade to elasticsearch-py 8.x:

 * elastic/elastic-transport-python#55
 * elastic/elastic-transport-python#58
@pquentin pquentin added the 7.x label Nov 4, 2022
@pquentin pquentin self-assigned this Nov 4, 2022
@miriam-eid miriam-eid merged commit 9b0d43b into elastic:7.17 Nov 24, 2022
@pquentin pquentin deleted the aiohttp-fixed-head-bug branch November 24, 2022 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants