Skip to content

Commit

Permalink
Fix IndexLifecycleExplainResponse serialization version checks (#48754)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dakrone authored Oct 31, 2019
1 parent 30280f6 commit 95ee5b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 95ee5b1

Please sign in to comment.