From 352d85cbe4d3e64e3ac08588a816ae603de736df Mon Sep 17 00:00:00 2001 From: Luca Cavanna Date: Tue, 15 Oct 2024 15:05:41 +0200 Subject: [PATCH] Re-enable backwards compatibility tests for version >=10 --- .../lucene/backward_index/BackwardsCompatibilityTestBase.java | 3 --- .../lucene/backward_index/TestBasicBackwardsCompatibility.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java index 2a4bf7916e7..edbed96be75 100644 --- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java +++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java @@ -115,9 +115,6 @@ public abstract class BackwardsCompatibilityTestBase extends LuceneTestCase { */ protected BackwardsCompatibilityTestBase( @Name("version") Version version, @Name("pattern") String indexPattern) { - // TODO: add 10.0.0 bw indices after 10.0.0 has been released, see - // https://github.com/apache/lucene/issues/13847 - assumeTrue("Can only test with 10.0.0 has been released", version.major < 10); this.version = version; this.indexPattern = indexPattern; } diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java index e8137bda8d8..262567f9f76 100644 --- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java +++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java @@ -832,7 +832,7 @@ public class TestBasicBackwardsCompatibility extends BackwardsCompatibilityTestB expectThrows(IllegalArgumentException.class, () -> TestUtil.addIndexesSlowly(w, reader)); assertEquals( e.getMessage(), - "Cannot merge a segment that has been created with major version 9 into this index which has been created by major version 10"); + "Cannot merge a segment that has been created with major version 10 into this index which has been created by major version 11"); w.close(); targetDir2.close();