diff --git a/server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java b/server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java index 59dda946417f8..0209682b2ad1e 100644 --- a/server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java +++ b/server/src/main/java/org/elasticsearch/cluster/metadata/DataStream.java @@ -153,7 +153,7 @@ public static String getDefaultBackingIndexName(String dataStreamName, long gene public DataStream(StreamInput in) throws IOException { this(in.readString(), new TimestampField(in), in.readList(Index::new), in.readVLong(), - in.getVersion().onOrAfter(Version.V_8_0_0) ? in.readMap(): null); + in.getVersion().onOrAfter(Version.V_7_11_0) ? in.readMap(): null); } public static Diff readDiffFrom(StreamInput in) throws IOException { @@ -166,7 +166,7 @@ public void writeTo(StreamOutput out) throws IOException { timeStampField.writeTo(out); out.writeList(indices); out.writeVLong(generation); - if (out.getVersion().onOrAfter(Version.V_8_0_0)) { + if (out.getVersion().onOrAfter(Version.V_7_11_0)) { out.writeMap(metadata); } }