apache / apache/lucene

Memory leaks in PerFieldAnalyzerWrapper [LUCENE-9069]

Open
#10,111 0 comments 0 reactions 0 assignees View on GitHub
affects-version:8.3 legacy-jira-priority:Major type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Closing the `PerFieldAnalyzerWrapper` doesn't close the `defaultAnalyzer` as well as all the `fieldAnalyzers`.

 

GitHub PR: https://github.com/apache/lucene-solr/pull/133

---
Migrated from [LUCENE-9069](https://issues.apache.org/jira/browse/LUCENE-9069) by Boris Petrov (@boris-petrov)

Contributor guide

Open the contributing guide

Research direction

Start by locating the PerFieldAnalyzerWrapper implementation and its close behavior, then inspect nearby analyzer lifecycle tests or usages. Done means closing the wrapper also closes the defaultAnalyzer and every fieldAnalyzer without regressions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.