Skip to content

Commit

Permalink
Update NodeEnvironmentTests.testIndexCompatibilityChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-ivanov-es committed Dec 12, 2024
1 parent 00beba2 commit 2708b04
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.elasticsearch.core.IOUtils;
import org.elasticsearch.core.PathUtils;
import org.elasticsearch.core.SuppressForbidden;
import org.elasticsearch.core.UpdateForV10;
import org.elasticsearch.core.UpdateForV9;
import org.elasticsearch.gateway.MetadataStateFormat;
import org.elasticsearch.gateway.PersistedClusterStateService;
Expand Down Expand Up @@ -539,8 +540,6 @@ public void testBlocksDowngradeToVersionWithMultipleNodesInDataPath() throws IOE
}
}

@UpdateForV9(owner = UpdateForV9.Owner.CORE_INFRA)
@AwaitsFix(bugUrl = "test won't work until we remove and bump minimum index versions")
public void testIndexCompatibilityChecks() throws IOException {
final Settings settings = buildEnvSettings(Settings.EMPTY);

Expand Down Expand Up @@ -584,7 +583,8 @@ public void testIndexCompatibilityChecks() throws IOException {
containsString("it holds metadata for indices with version [" + oldIndexVersion.toReleaseVersion() + "]"),
containsString(
"Revert this node to version ["
+ (previousNodeVersion.major == Version.V_8_0_0.major ? Version.V_7_17_0 : previousNodeVersion)
+ (previousNodeVersion.major == Version.CURRENT.major
? Version.CURRENT.minimumCompatibilityVersion() : previousNodeVersion)
+ "]"
)
)
Expand Down

0 comments on commit 2708b04

Please sign in to comment.