You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "slachiewicz (via GitHub)" <gi...@apache.org> on 2026/09/25 22:41:08 UTC

Re: [I] Memory Leak on RHEL 8: JVM Retains File Handles After Index Deletion [maven-indexer]

slachiewicz commented on issue #702:
URL: https://github.com/apache/maven-indexer/issues/702#issuecomment-5840650018

   We can reproduce deleted index files staying open, but only when the `IteratorSearchResponse` returned by `Indexer.searchIterator(...)` is never closed. It holds a Lucene searcher until `close()`, so `closeIndexingContext(ctx, true)` deletes the files while that reader still has them open. Closing the response (try-with-resources) leaves no open files. Does your code call `searchIterator` or `IndexingContext.acquireIndexSearcher()` without closing or releasing the result? If not, a minimal reproducer would help us find the other path.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org