Skip to content

Commit 671c7d7

Browse files
authored
Adjust OldCodecAvailableTests for v9 (#118510)
N-2 indices won't be covered by archive indices, but rather supported out-of-the-box. This commit reflects that in the tests expectations and adjusts the related update for v9 annotation.
1 parent c30ba12 commit 671c7d7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

x-pack/plugin/old-lucene-versions/src/test/java/org/elasticsearch/xpack/lucene/bwc/codecs/OldCodecsAvailableTests.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
package org.elasticsearch.xpack.lucene.bwc.codecs;
99

1010
import org.elasticsearch.Version;
11-
import org.elasticsearch.core.UpdateForV9;
11+
import org.elasticsearch.core.UpdateForV10;
1212
import org.elasticsearch.test.ESTestCase;
1313

1414
public class OldCodecsAvailableTests extends ESTestCase {
@@ -17,10 +17,8 @@ public class OldCodecsAvailableTests extends ESTestCase {
1717
* Reminder to add Lucene BWC codecs under {@link org.elasticsearch.xpack.lucene.bwc.codecs} whenever Elasticsearch is upgraded
1818
* to the next major Lucene version.
1919
*/
20-
@UpdateForV9(owner = UpdateForV9.Owner.SEARCH_FOUNDATIONS)
21-
@AwaitsFix(bugUrl = "muted until we add bwc codecs to support 7.x indices in Elasticsearch 9.0")
20+
@UpdateForV10(owner = UpdateForV10.Owner.SEARCH_FOUNDATIONS)
2221
public void testLuceneBWCCodecsAvailable() {
23-
assertEquals("Add Lucene BWC codecs for Elasticsearch version 7", 8, Version.CURRENT.major);
22+
assertEquals("Add Lucene BWC codecs for Elasticsearch version 7", 9, Version.CURRENT.major);
2423
}
25-
2624
}

0 commit comments

Comments
 (0)