OpenSearch/server
Henning Andersen 867d5f1c68
Search memory leak (#61788) (#61862)
Search could leak memory if global ordinals were calculated as part of
a search with low level cancellation enabled. QueryPhase registers a
cancellation on the reader that is never removed, which ends up being
referenced from the global ordinals cache entry. This keeps an indirect
reference to the search context. A significant leak can occur when a
heavy aggregation (cardinality for instance) is used and a failure occurs
during search, in particular if the pages backing the hyperlog++ structure
are not recycled when it is closed.

This commit also fixes an issue with an unclosed resource and request
breaker adjustment in the cardinality aggregation.
2020-09-02 18:51:14 +02:00
..
licenses Upgrade to Lucene 8.6.2 (#61688) 2020-08-31 09:54:07 -04:00
src Search memory leak (#61788) (#61862) 2020-09-02 18:51:14 +02:00
build.gradle Search - add case insensitive support for regex queries. (#59441) (#61532) 2020-08-25 17:18:59 +01:00