[ml] Specify the minimum supported version,

so that we don't send ml metadata to older nodes.

Original commit: elastic/x-pack-elasticsearch@f196b5c461
This commit is contained in:
Martijn van Groningen 2017-02-13 18:15:48 +01:00
parent a6e67fe51e
commit 5eb8414215
1 changed files with 6 additions and 0 deletions

View File

@ -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;