[ml] Specify the minimum supported version,
so that we don't send ml metadata to older nodes.
Original commit: elastic/x-pack-elasticsearch@f196b5c461caf05d8e797629406d169c1699bff0
@@ -7,6 +7,7 @@ package org.elasticsearch.xpack.ml.job.metadata;
import org.elasticsearch.ResourceAlreadyExistsException;
import org.elasticsearch.ResourceNotFoundException;
+import org.elasticsearch.Version;
import org.elasticsearch.cluster.AbstractDiffable;
import org.elasticsearch.cluster.Diff;
import org.elasticsearch.cluster.DiffableUtils;
@@ -80,6 +81,11 @@ public class MlMetadata implements MetaData.Custom {
return datafeeds.get(datafeedId);
}
+ @Override
+ public Version getMinimalSupportedVersion() {
+ return Version.V_5_4_0_UNRELEASED;
+ }
+
@Override
public String getWriteableName() {
return TYPE;
