Skip to content

Commit ecd49d8

Browse files
authored
Correct ILM metadata minimum compatibility version (#40569)
The ILM metadata minimum compatibility version was not set correctly, which can cause issues in mixed-version clusters.
1 parent 8cf232b commit ecd49d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/IndexLifecycleMetadata.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
106106

107107
@Override
108108
public Version getMinimalSupportedVersion() {
109-
return Version.V_7_0_0;
109+
return Version.V_6_6_0;
110110
}
111111

112112
@Override

x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/indexlifecycle/IndexLifecycleMetadataTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
import org.elasticsearch.common.unit.TimeValue;
1717
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
1818
import org.elasticsearch.common.xcontent.XContentParser;
19-
import org.elasticsearch.xpack.core.indexlifecycle.FreezeAction;
20-
import org.elasticsearch.xpack.core.indexlifecycle.OperationMode;
2119
import org.elasticsearch.test.AbstractDiffableSerializationTestCase;
2220
import org.elasticsearch.xpack.core.indexlifecycle.AllocateAction;
2321
import org.elasticsearch.xpack.core.indexlifecycle.DeleteAction;
2422
import org.elasticsearch.xpack.core.indexlifecycle.ForceMergeAction;
23+
import org.elasticsearch.xpack.core.indexlifecycle.FreezeAction;
2524
import org.elasticsearch.xpack.core.indexlifecycle.IndexLifecycleMetadata;
2625
import org.elasticsearch.xpack.core.indexlifecycle.IndexLifecycleMetadata.IndexLifecycleMetadataDiff;
2726
import org.elasticsearch.xpack.core.indexlifecycle.LifecycleAction;
2827
import org.elasticsearch.xpack.core.indexlifecycle.LifecyclePolicy;
2928
import org.elasticsearch.xpack.core.indexlifecycle.LifecyclePolicyMetadata;
3029
import org.elasticsearch.xpack.core.indexlifecycle.LifecycleType;
30+
import org.elasticsearch.xpack.core.indexlifecycle.OperationMode;
3131
import org.elasticsearch.xpack.core.indexlifecycle.Phase;
3232
import org.elasticsearch.xpack.core.indexlifecycle.ReadOnlyAction;
3333
import org.elasticsearch.xpack.core.indexlifecycle.RolloverAction;
@@ -137,7 +137,7 @@ protected Reader<Diff<Custom>> diffReader() {
137137
}
138138

139139
public void testMinimumSupportedVersion() {
140-
assertEquals(Version.V_7_0_0, createTestInstance().getMinimalSupportedVersion());
140+
assertEquals(Version.V_6_6_0, createTestInstance().getMinimalSupportedVersion());
141141
}
142142

143143
public void testcontext() {

0 commit comments

Comments
 (0)