From b0c911ebca44bad5d587579e493df3f942e03007 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Sat, 29 Feb 2020 08:45:39 +0100 Subject: [PATCH] LUCENE-9247: Exclude `write.lock` from files whose integrity is expected to be verified. --- .../org/apache/lucene/index/BaseIndexFileFormatTestCase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java index a47b027e5a4..827aad0c1d5 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java +++ b/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java @@ -896,6 +896,7 @@ abstract class BaseIndexFileFormatTestCase extends LuceneTestCase { Set 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 messages = new ArrayList<>();