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/12 07:17:18 UTC

[lucene-solr] branch master updated (2991acf -> cf8f83c)

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

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


    from 2991acf  LUCENE-9391: Upgrade HPPC to 0.8.2 (#1560)
     new 38adf09  LUCENE-9356: Make FST throw the correct exception upon incorrect input type.
     new cf8f83c  LUCENE-9356: Disable test, some corruptions are still not detected as corruptions.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 lucene/core/src/java/org/apache/lucene/util/fst/FST.java               | 3 ++-
 .../src/test/org/apache/lucene/index/TestAllFilesDetectBitFlips.java   | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)


[lucene-solr] 01/02: LUCENE-9356: Make FST throw the correct exception upon incorrect input type.

Posted by jp...@apache.org.
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

commit 38adf09ca2ba9620940fc279cc12760cc355a361
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Thu Jun 11 18:21:37 2020 +0200

    LUCENE-9356: Make FST throw the correct exception upon incorrect input type.
---
 lucene/core/src/java/org/apache/lucene/util/fst/FST.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/FST.java b/lucene/core/src/java/org/apache/lucene/util/fst/FST.java
index 260e9da..d092850 100644
--- a/lucene/core/src/java/org/apache/lucene/util/fst/FST.java
+++ b/lucene/core/src/java/org/apache/lucene/util/fst/FST.java
@@ -26,6 +26,7 @@ import java.nio.file.Files;
 import java.nio.file.Path;
 
 import org.apache.lucene.codecs.CodecUtil;
+import org.apache.lucene.index.CorruptIndexException;
 import org.apache.lucene.store.ByteBuffersDataOutput;
 import org.apache.lucene.store.DataInput;
 import org.apache.lucene.store.DataOutput;
@@ -452,7 +453,7 @@ public final class FST<T> implements Accountable {
         inputType = INPUT_TYPE.BYTE4;
         break;
     default:
-      throw new IllegalStateException("invalid input type " + t);
+      throw new CorruptIndexException("invalid input type " + t, in);
     }
     startNode = in.readVLong();
 


[lucene-solr] 02/02: LUCENE-9356: Disable test, some corruptions are still not detected as corruptions.

Posted by jp...@apache.org.
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

commit cf8f83cef95c03767f83602ff99345979dd0808b
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Fri Jun 12 09:16:04 2020 +0200

    LUCENE-9356: Disable test, some corruptions are still not detected as corruptions.
---
 .../src/test/org/apache/lucene/index/TestAllFilesDetectBitFlips.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lucene/core/src/test/org/apache/lucene/index/TestAllFilesDetectBitFlips.java b/lucene/core/src/test/org/apache/lucene/index/TestAllFilesDetectBitFlips.java
index 854b292..f63387b 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestAllFilesDetectBitFlips.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestAllFilesDetectBitFlips.java
@@ -30,6 +30,7 @@ import org.apache.lucene.store.IndexInput;
 import org.apache.lucene.store.IndexOutput;
 import org.apache.lucene.util.LineFileDocs;
 import org.apache.lucene.util.LuceneTestCase;
+import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
 import org.apache.lucene.util.LuceneTestCase.SuppressFileSystems;
 import org.apache.lucene.util.TestUtil;
 
@@ -37,6 +38,7 @@ import org.apache.lucene.util.TestUtil;
  * Test that the default codec detects bit flips at open or checkIntegrity time.
  */
 @SuppressFileSystems("ExtrasFS")
+@AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/LUCENE-9356")
 public class TestAllFilesDetectBitFlips extends LuceneTestCase {
 
   public void test() throws Exception {