Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-9777: Fix out of date versions on releases 8.7.0 and 8.8.0 (#2377)

Ignacio Veracfd0ccefe18b
diff --git a/dev-tools/scripts/addBackcompatIndexes.py b/dev-tools/scripts/addBackcompatIndexes.py
index ef2ad3ec6bf..289839bc7f9 100755
--- a/dev-tools/scripts/addBackcompatIndexes.py
+++ b/dev-tools/scripts/addBackcompatIndexes.py
@@ -53,7 +53,7 @@ def create_and_add_index(source, indextype, index_version, current_version, temp
print(' creating %s...' % filename, end='', flush=True)
module = 'backward-codecs'
- index_dir = os.path.join('lucene', module, 'src/test/org/apache/lucene/index')
+ index_dir = os.path.join('lucene', module, 'src/test/org/apache/lucene/backward_index')
test_file = os.path.join(index_dir, filename)
if os.path.exists(os.path.join(index_dir, filename)):
print('uptodate')
@@ -98,13 +98,13 @@ def create_and_add_index(source, indextype, index_version, current_version, temp
def update_backcompat_tests(types, index_version, current_version):
print(' adding new indexes %s to backcompat tests...' % types, end='', flush=True)
module = 'lucene/backward-codecs'
- filename = '%s/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java' % module
+ filename = '%s/src/test/org/apache/lucene/backward_index/TestBackwardsCompatibility.java' % module
if not current_version.is_back_compat_with(index_version):
matcher = re.compile(r'final String\[\] unsupportedNames = {|};')
elif 'sorted' in types:
- matcher = re.compile(r'final static String\[\] oldSortedNames = {|};')
+ matcher = re.compile(r'static final String\[\] oldSortedNames = {|};')
else:
- matcher = re.compile(r'final static String\[\] oldNames = {|};')
+ matcher = re.compile(r'static final String\[\] oldNames = {|};')
strip_dash_suffix_re = re.compile(r'-.*')
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 7c75d5a26f7..2deced798c4 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
@@ -361,7 +361,11 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
"8.6.2-cfs",
"8.6.2-nocfs",
"8.6.3-cfs",
- "8.6.3-nocfs"
+ "8.6.3-nocfs",
+ "8.7.0-cfs",
+ "8.7.0-nocfs",
+ "8.8.0-cfs",
+ "8.8.0-nocfs"
};
public static String[] getOldNames() {
@@ -383,7 +387,9 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
"sorted.8.6.0",
"sorted.8.6.1",
"sorted.8.6.2",
- "sorted.8.6.3"
+ "sorted.8.6.3",
+ "sorted.8.7.0",
+ "sorted.8.8.0"
};
public static String[] getOldSortedNames() {
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.7.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.7.0-cfs.zip
new file mode 100644
index 00000000000..c49a6675a21
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.7.0-cfs.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.7.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.7.0-nocfs.zip
new file mode 100644
index 00000000000..a3b5b2ed988
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.7.0-nocfs.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.8.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.8.0-cfs.zip
new file mode 100644
index 00000000000..5a623f93cf0
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.8.0-cfs.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.8.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.8.0-nocfs.zip
new file mode 100644
index 00000000000..6e2cb9ca129
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.8.8.0-nocfs.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.8.7.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.8.7.0.zip
new file mode 100644
index 00000000000..5a65b0731db
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.8.7.0.zip differ
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.8.8.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.8.8.0.zip
new file mode 100644
index 00000000000..cf117dbe7bd
Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.8.8.0.zip differ
diff --git a/lucene/core/src/java/org/apache/lucene/util/Version.java b/lucene/core/src/java/org/apache/lucene/util/Version.java
index f1be05e2c73..a1d43aea169 100644
--- a/lucene/core/src/java/org/apache/lucene/util/Version.java
+++ b/lucene/core/src/java/org/apache/lucene/util/Version.java
@@ -133,6 +133,20 @@ public final class Version {
*/
@Deprecated public static final Version LUCENE_8_6_3 = new Version(8, 6, 3);
+ /**
+ * Match settings and bugs in Lucene's 8.7.0 release.
+ *
+ * @deprecated Use latest
+ */
+ @Deprecated public static final Version LUCENE_8_7_0 = new Version(8, 7, 0);
+
+ /**
+ * Match settings and bugs in Lucene's 8.8.0 release.
+ *
+ * @deprecated Use latest
+ */
+ @Deprecated public static final Version LUCENE_8_8_0 = new Version(8, 8, 0);
+
/**
* Match settings and bugs in Lucene's 9.0.0 release.
*