LUCENE-9247: Exclude `write.lock` from files whose integrity is expected to be verified.

This commit is contained in:
Adrien Grand 2020-02-29 08:45:39 +01:00
parent 30944d3520
commit c929b65c81
1 changed files with 1 additions and 0 deletions

View File

@ -896,6 +896,7 @@ abstract class BaseIndexFileFormatTestCase extends LuceneTestCase {
Set<String> unreadFiles = new HashSet<>(Arrays.asList(readBytesWrapperDir.listAll()));
unreadFiles.removeAll(readBytesMap.keySet());
unreadFiles.remove(IndexWriter.WRITE_LOCK_NAME);
assertTrue("Some files have not been open: " + unreadFiles, unreadFiles.isEmpty());
List<String> messages = new ArrayList<>();