Describe the bug
OnDemandBlockSnapshotIndexInputTests.testVariousBlockSize fails on windows. See https://build.ci.opensearch.org/job/gradle-check/7153/testReport/junit/org.opensearch.index.store.remote.file/OnDemandBlockSnapshotIndexInputTests/testVariousBlockSize/
Expected behavior
Test should pass.
Plugins
None
Host/Environment (please complete the following information):
- OS: [e.g. iOS]
- Version [e.g. 22]
Additional context
The test is failing to delete files in its cleanDirectory method because it uses an MMapDirectory. Attempts to delete the files throw an AccessDeniedException unless the IndexInput is closed & a round of gc runs.
See https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java#LL46C4-L46C4
Describe the bug
OnDemandBlockSnapshotIndexInputTests.testVariousBlockSize fails on windows. See https://build.ci.opensearch.org/job/gradle-check/7153/testReport/junit/org.opensearch.index.store.remote.file/OnDemandBlockSnapshotIndexInputTests/testVariousBlockSize/
Expected behavior
Test should pass.
Plugins
None
Host/Environment (please complete the following information):
Additional context
The test is failing to delete files in its cleanDirectory method because it uses an MMapDirectory. Attempts to delete the files throw an AccessDeniedException unless the IndexInput is closed & a round of gc runs.
See https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java#LL46C4-L46C4