[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:
parent
a6e67fe51e
commit
5eb8414215
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue