Skip to content

Commit

Permalink
Correct ILM metadata minimum compatibility version (#40569)
Browse files Browse the repository at this point in the history
The ILM metadata minimum compatibility version was not set correctly,
which can cause issues in mixed-version clusters.
  • Loading branch information
gwbrown committed Mar 28, 2019
1 parent 2964cea commit 9c9694d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -106,7 +106,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws

@Override
public Version getMinimalSupportedVersion() {
return Version.V_7_0_0;
return Version.V_6_6_0;
}

@Override
Expand Down
Expand Up @@ -16,18 +16,18 @@
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.xpack.core.indexlifecycle.FreezeAction;
import org.elasticsearch.xpack.core.indexlifecycle.OperationMode;
import org.elasticsearch.test.AbstractDiffableSerializationTestCase;
import org.elasticsearch.xpack.core.indexlifecycle.AllocateAction;
import org.elasticsearch.xpack.core.indexlifecycle.DeleteAction;
import org.elasticsearch.xpack.core.indexlifecycle.ForceMergeAction;
import org.elasticsearch.xpack.core.indexlifecycle.FreezeAction;
import org.elasticsearch.xpack.core.indexlifecycle.IndexLifecycleMetadata;
import org.elasticsearch.xpack.core.indexlifecycle.IndexLifecycleMetadata.IndexLifecycleMetadataDiff;
import org.elasticsearch.xpack.core.indexlifecycle.LifecycleAction;
import org.elasticsearch.xpack.core.indexlifecycle.LifecyclePolicy;
import org.elasticsearch.xpack.core.indexlifecycle.LifecyclePolicyMetadata;
import org.elasticsearch.xpack.core.indexlifecycle.LifecycleType;
import org.elasticsearch.xpack.core.indexlifecycle.OperationMode;
import org.elasticsearch.xpack.core.indexlifecycle.Phase;
import org.elasticsearch.xpack.core.indexlifecycle.ReadOnlyAction;
import org.elasticsearch.xpack.core.indexlifecycle.RolloverAction;
Expand Down Expand Up @@ -137,7 +137,7 @@ protected Reader<Diff<Custom>> diffReader() {
}

public void testMinimumSupportedVersion() {
assertEquals(Version.V_7_0_0, createTestInstance().getMinimalSupportedVersion());
assertEquals(Version.V_6_6_0, createTestInstance().getMinimalSupportedVersion());
}

public void testcontext() {
Expand Down

0 comments on commit 9c9694d

Please sign in to comment.