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/06/17 07:36:31 UTC

[lucene-solr] branch branch_8x updated: LUCENE-9359: Avoid test failures when the extra file is a dir.

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/branch_8x by this push:
     new 745e131  LUCENE-9359: Avoid test failures when the extra file is a dir.
745e131 is described below

commit 745e13108cdda6177bf2c3ae02e4993a43d455d8
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Wed Jun 17 09:35:38 2020 +0200

    LUCENE-9359: Avoid test failures when the extra file is a dir.
---
 lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java b/lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java
index e842cd7..0863222 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestSegmentInfos.java
@@ -19,6 +19,7 @@ package org.apache.lucene.index;
 
 import org.apache.lucene.codecs.Codec;
 import org.apache.lucene.codecs.CodecUtil;
+import org.apache.lucene.mockfile.ExtrasFS;
 import org.apache.lucene.search.Sort;
 import org.apache.lucene.store.BaseDirectoryWrapper;
 import org.apache.lucene.store.Directory;
@@ -236,7 +237,7 @@ public class TestSegmentInfos extends LuceneTestCase {
           // ok
         }
         corrupt = true;
-      } else if (slowFileExists(corruptDir, file) == false) { // extraFS
+      } else if (ExtrasFS.isExtra(file) == false) {
         corruptDir.copyFrom(dir, file, file, IOContext.DEFAULT);
       }
     }