From add162469ce53cd3108ded801a2fb0636404891f Mon Sep 17 00:00:00 2001 From: Paul Sanwald Date: Fri, 4 May 2018 06:13:58 -0700 Subject: [PATCH] add version compatibility from 6.4.0 after backport, see #30319 --- .../action/admin/indices/validate/query/QueryExplanation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/action/admin/indices/validate/query/QueryExplanation.java b/server/src/main/java/org/elasticsearch/action/admin/indices/validate/query/QueryExplanation.java index 1438daf29fd15..780bf037f0e28 100644 --- a/server/src/main/java/org/elasticsearch/action/admin/indices/validate/query/QueryExplanation.java +++ b/server/src/main/java/org/elasticsearch/action/admin/indices/validate/query/QueryExplanation.java @@ -75,7 +75,7 @@ public String getExplanation() { @Override public void readFrom(StreamInput in) throws IOException { - if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) { + if (in.getVersion().onOrAfter(Version.V_6_4_0)) { index = in.readOptionalString(); } else { index = in.readString(); @@ -92,7 +92,7 @@ public void readFrom(StreamInput in) throws IOException { @Override public void writeTo(StreamOutput out) throws IOException { - if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) { + if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeOptionalString(index); } else { out.writeString(index);