Skip to content

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
2 participants