lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject [lucene-solr] branch master updated: LUCENE-9247: Exclude `write.lock` from files whose integrity is expected to be verified.
Date Sat, 29 Feb 2020 07:46:43 GMT
This is an automated email from the ASF dual-hosted git repository.

jpountz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new c929b65  LUCENE-9247: Exclude `write.lock` from files whose integrity is expected
to be verified.
c929b65 is described below

commit c929b65c81166eba60c65fa08444cc7c97709722
Author: Adrien Grand <jpountz@gmail.com>
AuthorDate: Sat Feb 29 08:45:39 2020 +0100

    LUCENE-9247: Exclude `write.lock` from files whose integrity is expected to be verified.
---
 .../src/java/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 7d017e7..44303cf 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<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<>();


Mime
View raw message