Skip to content

FunctionScoreQuery have a direct reference to QueryShardContext #73925

Closed
@jimczi

Description

@jimczi

FunctionScoreQuery can be cached on a per-segment basis in the Lucene query cache. However a recent refactoring made them depend on the QueryShardContext so the query cache can now keep references to old index readers.
That should be considered as a leak since this memory is not taken into account in the cache size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search/SearchSearch-related issues that do not fall into other categories>bug>regressionTeam:SearchMeta label for search team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions