Skip to content

Commit b1fcffe

Browse files
committed
Fix IndexLifecycleExplainResponse serialization version checks
This fixes the version checks to use 7.8.0 instead of 8.0.0 since the changes in elastic#54825 were backported to the 7.x branch.
1 parent 6ae2d5e commit b1fcffe

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public IndexLifecycleExplainResponse(StreamInput in) throws IOException {
194194
isAutoRetryableError = null;
195195
failedStepRetryCount = null;
196196
}
197-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
197+
if (in.getVersion().onOrAfter(Version.V_7_8_0)) {
198198
repositoryName = in.readOptionalString();
199199
snapshotName = in.readOptionalString();
200200
} else {
@@ -240,7 +240,7 @@ public void writeTo(StreamOutput out) throws IOException {
240240
out.writeOptionalBoolean(isAutoRetryableError);
241241
out.writeOptionalVInt(failedStepRetryCount);
242242
}
243-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
243+
if (out.getVersion().onOrAfter(Version.V_7_8_0)) {
244244
out.writeOptionalString(repositoryName);
245245
out.writeOptionalString(snapshotName);
246246
}

0 commit comments

Comments
 (0)