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 2021/12/08 16:43:33 UTC

[lucene] branch main updated: Add back-compat indices for 9.0.0.

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

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


The following commit(s) were added to refs/heads/main by this push:
     new ecc3849  Add back-compat indices for 9.0.0.
ecc3849 is described below

commit ecc38495ab2ae5b002a688c74b3cd46d09328c16
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Wed Dec 8 17:43:06 2021 +0100

    Add back-compat indices for 9.0.0.
---
 .../backward_index/TestBackwardsCompatibility.java     |  11 ++++++++---
 .../apache/lucene/backward_index/dvupdates.9.0.0.zip   | Bin 0 -> 14491 bytes
 .../org/apache/lucene/backward_index/empty.9.0.0.zip   | Bin 0 -> 376 bytes
 .../apache/lucene/backward_index/index.9.0.0-cfs.zip   | Bin 0 -> 16683 bytes
 .../apache/lucene/backward_index/index.9.0.0-nocfs.zip | Bin 0 -> 16669 bytes
 .../apache/lucene/backward_index/moreterms.9.0.0.zip   | Bin 0 -> 141558 bytes
 .../org/apache/lucene/backward_index/sorted.9.0.0.zip  | Bin 0 -> 137675 bytes
 7 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java
index e898ba3..8f5a241 100644
--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java
+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java
@@ -334,13 +334,18 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
     }
   }
 
-  static final String[] oldNames = {};
+  static final String[] oldNames = {
+    "9.0.0-cfs",
+    "9.0.0-nocfs"
+  };
 
   public static String[] getOldNames() {
     return oldNames;
   }
 
-  static final String[] oldSortedNames = {};
+  static final String[] oldSortedNames = {
+    "sorted.9.0.0"
+  };
 
   public static String[] getOldSortedNames() {
     return oldSortedNames;
@@ -994,7 +999,7 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
                 IllegalArgumentException.class, () -> TestUtil.addIndexesSlowly(w, reader));
         assertEquals(
             e.getMessage(),
-            "Cannot merge a segment that has been created with major version 8 into this index which has been created by major version 9");
+            "Cannot merge a segment that has been created with major version 9 into this index which has been created by major version 10");
         w.close();
         targetDir2.close();
 
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/dvupdates.9.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/dvupdates.9.0.0.zip
new file mode 100644
index 0000000..f9bca78
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/dvupdates.9.0.0.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/empty.9.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/empty.9.0.0.zip
new file mode 100644
index 0000000..24dde33
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/empty.9.0.0.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-cfs.zip
new file mode 100644
index 0000000..2783c4b
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-cfs.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-nocfs.zip
new file mode 100644
index 0000000..98dfb5f
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-nocfs.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/moreterms.9.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/moreterms.9.0.0.zip
new file mode 100644
index 0000000..52ad8d7
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/moreterms.9.0.0.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.0.0.zip
new file mode 100644
index 0000000..08484e6
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.0.0.zip differ