commit | a7202e2e6fdf119e7f1971a47b77648fd767f4c1 | [log] [tgz] |
---|---|---|
author | Luca Cavanna <javanna@apache.org> | Fri Sep 08 14:55:01 2023 +0200 |
committer | GitHub <noreply@github.com> | Fri Sep 08 14:55:01 2023 +0200 |
tree | 5c6c4e21b3d41cdd9689bf2e02b2fc7e72c77fb5 | |
parent | ef42af65f27f7f078b1ab426de9f2b2fa214ad86 [diff] |
Close index readers in tests (#12544) There are a few places where tests don't close index readers. This has not caused problems so far, but it becomes an issue when the reader gets an executor, because its shutdown happens as a closing listener of the reader. This has become more evident since we now offload sequential execution to the executor. If there's an executor, but it's never used, no threads are created, and no threads are leaked. If we do use the executor, and the reader is not closed, the test leaks threads.
Apache Lucene is a high-performance, full-featured text search engine library written in Java.
This README file only contains basic setup instructions. For more comprehensive documentation, visit:
gradlew
).We‘ll assume that you know how to get and set up the JDK - if you don’t, then we suggest starting at https://jdk.java.net/ and learning more about Java, before returning to this README.
See Contributing Guide for details.
Bug fixes, improvements and new features are always welcome! Please review the Contributing to Lucene Guide for information on contributing.
#lucene
and #lucene-dev
on freenode.net