Skip to content

Commit 95ee5b1

Browse files
authored
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.
1 parent 30280f6 commit 95ee5b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/IndexLifecycleExplainResponse.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public IndexLifecycleExplainResponse(StreamInput in) throws IOException {
174174
stepTime = in.readOptionalLong();
175175
stepInfo = in.readOptionalBytesReference();
176176
phaseExecutionInfo = in.readOptionalWriteable(PhaseExecutionInfo::new);
177-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
177+
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
178178
isAutoRetryableError = in.readOptionalBoolean();
179179
failedStepRetryCount = in.readOptionalVInt();
180180
} else {
@@ -214,7 +214,7 @@ public void writeTo(StreamOutput out) throws IOException {
214214
out.writeOptionalLong(stepTime);
215215
out.writeOptionalBytesReference(stepInfo);
216216
out.writeOptionalWriteable(phaseExecutionInfo);
217-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
217+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
218218
out.writeOptionalBoolean(isAutoRetryableError);
219219
out.writeOptionalVInt(failedStepRetryCount);
220220
}

0 commit comments

Comments
 (0)