Skip to content

SearchService.createSearchContext() can leak a searcher #45378

@romseygeek

Description

@romseygeek

In SearchService.java line 632 we call indexShard.acquireSearcher(), and then pass this searcher to a new DefaultSearchContext which takes ownership. However, if there is an error when creating this search context, the searcher will never be released.

Metadata

Metadata

Labels

:Distributed Indexing/EngineAnything around managing Lucene and the Translog in an open shard.>bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions