From 95ee5b1ea917043d1ae5b088d27fb7bf196d47e0 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Thu, 31 Oct 2019 12:01:36 -0600 Subject: [PATCH] Fix IndexLifecycleExplainResponse serialization version checks (#48754) This fixes the version checks to use 7.6.0 instead of 8.0.0 since the changes in #48256 were backported to the 7.x branch. --- .../xpack/core/ilm/IndexLifecycleExplainResponse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponse.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponse.java index be94bf5d812dd..711e57d3b6d8e 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponse.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponse.java @@ -174,7 +174,7 @@ public IndexLifecycleExplainResponse(StreamInput in) throws IOException { stepTime = in.readOptionalLong(); stepInfo = in.readOptionalBytesReference(); phaseExecutionInfo = in.readOptionalWriteable(PhaseExecutionInfo::new); - if (in.getVersion().onOrAfter(Version.V_8_0_0)) { + if (in.getVersion().onOrAfter(Version.V_7_6_0)) { isAutoRetryableError = in.readOptionalBoolean(); failedStepRetryCount = in.readOptionalVInt(); } else { @@ -214,7 +214,7 @@ public void writeTo(StreamOutput out) throws IOException { out.writeOptionalLong(stepTime); out.writeOptionalBytesReference(stepInfo); out.writeOptionalWriteable(phaseExecutionInfo); - if (out.getVersion().onOrAfter(Version.V_8_0_0)) { + if (out.getVersion().onOrAfter(Version.V_7_6_0)) { out.writeOptionalBoolean(isAutoRetryableError); out.writeOptionalVInt(failedStepRetryCount); }