Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAK-11619 - Fix flaky ConcurrentMultiplexingIndexWriterTest #2196

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

nfsantos
Copy link
Contributor

The LuceneIndexWriterFactory was not being closed by the test. This object contains a thread pool with the Lucene index writers which write data to disk on the background. After the test ends, JUnit deletes the test directory where all the Lucene data was written. If the Lucene writer threads try to access the Lucene files after the files are deleted, they will fail. This is likely what was causing the failure.

This PR closes the the LuceneIndexWriterFactory at the end of the test.

… are stopped before the test terminates and the directories with the Lucene data are removed.
@nfsantos nfsantos merged commit c303692 into apache:trunk Mar 21, 2025
1 of 3 checks passed
@nfsantos nfsantos deleted the OAK-11619 branch March 21, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants