You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2020/02/29 07:46:43 UTC
[lucene-solr] branch master updated: LUCENE-9247: Exclude
`write.lock` from files whose integrity is expected to be verified.
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 <jp...@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<>();