Skip to content

Commit 51f442b

Browse files
authored
Infer index version for 8.10 patches (#99501) (#99503)
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
1 parent 1c2586d commit 51f442b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/node/VersionInformation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public static VersionInformation inferVersions(Version nodeVersion) {
3232
return null;
3333
} else if (nodeVersion.equals(Version.CURRENT)) {
3434
return CURRENT;
35-
} else if (nodeVersion.before(Version.V_8_10_0)) {
35+
} else if (nodeVersion.before(Version.CURRENT)) {
36+
// CURRENT here is always before 8.11.0
3637
return new VersionInformation(
3738
nodeVersion,
3839
IndexVersion.fromId(nodeVersion.minimumIndexCompatibilityVersion().id),

0 commit comments

Comments
 (0)