Skip to content

Conversation

romseygeek
Copy link
Contributor

Backports the following commits to 9.1:

…TextQuery (elastic#134887)

Lucene Query objects can hang around for longer than a single search,
for example as the key in a Query cache.  This means that they should
not hold references to anything that is only expected to exist for the
duration of a single search request.

SourceConfirmedTextQuery holds a lambda to load data during query
execution.  This commit changes one of the constructor calls to avoid
capturing unnecessary references to the SearchExecutionContext, an
object which is expected to be short-lived.
@romseygeek romseygeek added :StorageEngine/Mapping The storage related side of mappings >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:StorageEngine labels Sep 17, 2025
@elasticsearchmachine elasticsearchmachine merged commit c5eafe2 into elastic:9.1 Sep 17, 2025
35 checks passed
@romseygeek romseygeek deleted the backport/9.1/pr-134887 branch September 17, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine v9.1.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants