From ebe00a61dc15c30cb29b64ce4dd1309ffc6e5013 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Tue, 12 Sep 2023 17:07:18 -0700 Subject: [PATCH] Infer index version for 8.10 patches (#99501) This commit fixes a missed poison pill for inferring index version. The changed logic allows inferring to work on 8.10 patches, not just 8.10.0. see #99003 --- .../java/org/elasticsearch/cluster/node/VersionInformation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/cluster/node/VersionInformation.java b/server/src/main/java/org/elasticsearch/cluster/node/VersionInformation.java index 85d17dabed781..a2e2e801db958 100644 --- a/server/src/main/java/org/elasticsearch/cluster/node/VersionInformation.java +++ b/server/src/main/java/org/elasticsearch/cluster/node/VersionInformation.java @@ -32,7 +32,7 @@ public static VersionInformation inferVersions(Version nodeVersion) { return null; } else if (nodeVersion.equals(Version.CURRENT)) { return CURRENT; - } else if (nodeVersion.onOrBefore(Version.V_8_10_0)) { + } else if (nodeVersion.before(Version.V_8_11_0)) { return new VersionInformation( nodeVersion, IndexVersion.getMinimumCompatibleIndexVersion(nodeVersion.id),