diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ForceMergeAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ForceMergeAction.java index c6ebd079f1852..e1e5e2a6ddfda 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ForceMergeAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/ForceMergeAction.java @@ -68,7 +68,7 @@ public ForceMergeAction(int maxNumSegments, @Nullable String codec) { public ForceMergeAction(StreamInput in) throws IOException { this.maxNumSegments = in.readVInt(); - if (in.getVersion().onOrAfter(Version.V_8_0_0)) { + if (in.getVersion().onOrAfter(Version.V_7_7_0)) { this.codec = in.readOptionalString(); } else { this.codec = null; @@ -86,7 +86,7 @@ public String getCodec() { @Override public void writeTo(StreamOutput out) throws IOException { out.writeVInt(maxNumSegments); - if (out.getVersion().onOrAfter(Version.V_8_0_0)) { + if (out.getVersion().onOrAfter(Version.V_7_7_0)) { out.writeOptionalString(codec); } }