From 5eb841421528323cfd7153a85234ee6ebe5d574e Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 13 Feb 2017 18:15:48 +0100 Subject: [PATCH] [ml] Specify the minimum supported version, so that we don't send ml metadata to older nodes. Original commit: elastic/x-pack-elasticsearch@f196b5c461caf05d8e797629406d169c1699bff0 --- .../org/elasticsearch/xpack/ml/job/metadata/MlMetadata.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/metadata/MlMetadata.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/metadata/MlMetadata.java index 06c95c99f85..e876f8d5d08 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/metadata/MlMetadata.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/metadata/MlMetadata.java @@ -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;