From 78d60aef760e9075752ae4637a0a38ad0a1c0973 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 21 Jun 2023 06:31:41 -0700 Subject: [PATCH] Fix serialization constant In #96900 a new transport version was added for additional information in the main response. However, due to upstream conflicts, this transport version had to be bumped a few times. In the process, the the version was bumped, but the condition was never updated. This commit fixes the condition to use the version that was added. --- .../src/main/java/org/elasticsearch/rest/root/MainResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rest-root/src/main/java/org/elasticsearch/rest/root/MainResponse.java b/modules/rest-root/src/main/java/org/elasticsearch/rest/root/MainResponse.java index c38734fe8d99a..84f21129e02f3 100644 --- a/modules/rest-root/src/main/java/org/elasticsearch/rest/root/MainResponse.java +++ b/modules/rest-root/src/main/java/org/elasticsearch/rest/root/MainResponse.java @@ -89,7 +89,7 @@ public Build getBuild() { public void writeTo(StreamOutput out) throws IOException { out.writeString(nodeName); Version.writeVersion(version, out); - if (out.getTransportVersion().onOrAfter(TransportVersion.V_8_500_014)) { + if (out.getTransportVersion().onOrAfter(TransportVersion.V_8_500_019)) { TransportVersion.writeVersion(transportVersion, out); } clusterName.writeTo(out);