Skip to content

Commit 410b03e

Browse files
Remove deprecated settings from 8.0.0 (#56211)
In 7.8.0, we deprecated the settings for disabling basic license feature APIs. This PR removes those settings altogether for 8.0. This is a breaking change: if these options appear in elasticsearch.yml, they will no longer be recognized.
1 parent 863a883 commit 410b03e

File tree

4 files changed

+5
-126
lines changed

4 files changed

+5
-126
lines changed

docs/reference/migration/migrate_8_0/settings.asciidoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ In Elasticsearch 8.0.0, the setting `xpack.monitoring.exporters.<exporterName>.a
6767
removed.
6868

6969
[float]
70-
==== Option to disable basic license features is deprecated
70+
==== Option to disable basic license features is removed.
7171

72-
In Elasticsearch 7.8.0, the following settings no longer have any effect, and
73-
have been deprecated:
72+
The following settings were deprecated in {es} 7.8.0 and have been removed
73+
in {es} 8.0.0:
7474

7575
* `xpack.enrich.enabled`
7676
* `xpack.flattened.enabled`
@@ -82,9 +82,7 @@ have been deprecated:
8282
* `xpack.transform.enabled`
8383
* `xpack.vectors.enabled`
8484

85-
Previously, these settings could be set to `false` in order to disable the
86-
feature's APIs in a cluster. As of 7.8.0, these basic license features are
87-
always enabled for the {default-dist}.
85+
These basic license features are now always enabled for the {default-dist}.
8886

8987
If you have disabled ILM so that you can use another tool to manage Watcher
9088
indices, the newly introduced `xpack.watcher.use_ilm_index_management` setting

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

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -37,41 +37,14 @@ private XPackSettings() {
3737
throw new IllegalStateException("Utility class should not be instantiated");
3838
}
3939

40-
/**
41-
* Setting for controlling whether or not enrich is enabled.
42-
* <p>
43-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
44-
*/
45-
@Deprecated(since = "7.8.0")
46-
public static final Setting<Boolean> ENRICH_ENABLED_SETTING = Setting.boolSetting("xpack.enrich.enabled", true,
47-
Property.NodeScope, Property.Deprecated);
48-
4940
/**
5041
* Setting for controlling whether or not CCR is enabled.
5142
*/
5243
public static final Setting<Boolean> CCR_ENABLED_SETTING = Setting.boolSetting("xpack.ccr.enabled", true, Property.NodeScope);
5344

54-
/**
55-
* Setting for enabling or disabling data frame. Defaults to true.
56-
* <p>
57-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
58-
*/
59-
@Deprecated(since = "7.8.0")
60-
public static final Setting<Boolean> TRANSFORM_ENABLED = Setting.boolSetting("xpack.transform.enabled", true,
61-
Property.NodeScope, Property.Deprecated);
62-
6345
/** Setting for enabling or disabling security. Defaults to true. */
6446
public static final Setting<Boolean> SECURITY_ENABLED = Setting.boolSetting("xpack.security.enabled", true, Setting.Property.NodeScope);
6547

66-
/**
67-
* Setting for enabling or disabling monitoring.
68-
* <p>
69-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
70-
*/
71-
@Deprecated(since = "7.8.0")
72-
public static final Setting<Boolean> MONITORING_ENABLED = Setting.boolSetting("xpack.monitoring.enabled", true,
73-
Property.NodeScope, Property.Deprecated);
74-
7548
/** Setting for enabling or disabling watcher. Defaults to true. */
7649
public static final Setting<Boolean> WATCHER_ENABLED = Setting.boolSetting("xpack.watcher.enabled", true, Setting.Property.NodeScope);
7750

@@ -82,15 +55,6 @@ private XPackSettings() {
8255
public static final Setting<Boolean> MACHINE_LEARNING_ENABLED = Setting.boolSetting("xpack.ml.enabled", true,
8356
Setting.Property.NodeScope);
8457

85-
/**
86-
* Setting for enabling or disabling rollup. Defaults to true.
87-
* <p>
88-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
89-
*/
90-
@Deprecated(since = "7.8.0")
91-
public static final Setting<Boolean> ROLLUP_ENABLED = Setting.boolSetting("xpack.rollup.enabled", true,
92-
Property.NodeScope, Property.Deprecated);
93-
9458
/** Setting for enabling or disabling auditing. Defaults to false. */
9559
public static final Setting<Boolean> AUDIT_ENABLED = Setting.boolSetting("xpack.security.audit.enabled", false,
9660
Setting.Property.NodeScope);
@@ -99,33 +63,6 @@ private XPackSettings() {
9963
public static final Setting<Boolean> DLS_FLS_ENABLED = Setting.boolSetting("xpack.security.dls_fls.enabled", true,
10064
Setting.Property.NodeScope);
10165

102-
/**
103-
* Setting for enabling or disabling Logstash extensions. Defaults to true.
104-
* <p>
105-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
106-
*/
107-
@Deprecated(since = "7.8.0")
108-
public static final Setting<Boolean> LOGSTASH_ENABLED = Setting.boolSetting("xpack.logstash.enabled", true,
109-
Setting.Property.NodeScope, Property.Deprecated);
110-
111-
/**
112-
* Setting for enabling or disabling the index lifecycle extension. Defaults to true.
113-
* <p>
114-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
115-
*/
116-
@Deprecated(since = "7.8.0")
117-
public static final Setting<Boolean> INDEX_LIFECYCLE_ENABLED = Setting.boolSetting("xpack.ilm.enabled", true,
118-
Property.NodeScope, Property.Deprecated);
119-
120-
/**
121-
* Setting for enabling or disabling the snapshot lifecycle extension. Defaults to true.
122-
* <p>
123-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
124-
*/
125-
@Deprecated(since = "7.8.0")
126-
public static final Setting<Boolean> SNAPSHOT_LIFECYCLE_ENABLED = Setting.boolSetting("xpack.slm.enabled", true,
127-
Property.NodeScope, Property.Deprecated);
128-
12966
/** Setting for enabling or disabling TLS. Defaults to false. */
13067
public static final Setting<Boolean> TRANSPORT_SSL_ENABLED = Setting.boolSetting("xpack.security.transport.ssl.enabled", false,
13168
Property.NodeScope);
@@ -150,33 +87,6 @@ private XPackSettings() {
15087
public static final Setting<Boolean> FIPS_MODE_ENABLED =
15188
Setting.boolSetting("xpack.security.fips_mode.enabled", false, Property.NodeScope);
15289

153-
/**
154-
* Setting for enabling or disabling sql. Defaults to true.
155-
* <p>
156-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
157-
*/
158-
@Deprecated(since = "7.8.0")
159-
public static final Setting<Boolean> SQL_ENABLED = Setting.boolSetting("xpack.sql.enabled", true,
160-
Property.NodeScope, Property.Deprecated);
161-
162-
/**
163-
* Setting for enabling or disabling flattened fields. Defaults to true.
164-
* <p>
165-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
166-
*/
167-
@Deprecated(since = "7.8.0")
168-
public static final Setting<Boolean> FLATTENED_ENABLED = Setting.boolSetting("xpack.flattened.enabled", true,
169-
Property.NodeScope, Property.Deprecated);
170-
171-
/**
172-
* Setting for enabling or disabling vectors. Defaults to true.
173-
* <p>
174-
* This setting is now a no-op: setting it to false is permitted, but does nothing.
175-
*/
176-
@Deprecated(since = "7.8.0")
177-
public static final Setting<Boolean> VECTORS_ENABLED = Setting.boolSetting("xpack.vectors.enabled", true,
178-
Property.NodeScope, Property.Deprecated);
179-
18090
/*
18191
* SSL settings. These are the settings that are specifically registered for SSL. Many are private as we do not explicitly use them
18292
* but instead parse based on a prefix (eg *.ssl.*)
@@ -271,28 +181,18 @@ public static List<Setting<?>> getAllSettings() {
271181
settings.addAll(HTTP_SSL.getAllSettings());
272182
settings.addAll(TRANSPORT_SSL.getAllSettings());
273183
settings.add(SECURITY_ENABLED);
274-
settings.add(MONITORING_ENABLED);
275184
settings.add(GRAPH_ENABLED);
276185
settings.add(MACHINE_LEARNING_ENABLED);
277186
settings.add(AUDIT_ENABLED);
278187
settings.add(WATCHER_ENABLED);
279188
settings.add(DLS_FLS_ENABLED);
280-
settings.add(LOGSTASH_ENABLED);
281189
settings.add(TRANSPORT_SSL_ENABLED);
282190
settings.add(HTTP_SSL_ENABLED);
283191
settings.add(RESERVED_REALM_ENABLED_SETTING);
284192
settings.add(TOKEN_SERVICE_ENABLED_SETTING);
285193
settings.add(API_KEY_SERVICE_ENABLED_SETTING);
286-
settings.add(SQL_ENABLED);
287194
settings.add(USER_SETTING);
288-
settings.add(ROLLUP_ENABLED);
289195
settings.add(PASSWORD_HASHING_ALGORITHM);
290-
settings.add(INDEX_LIFECYCLE_ENABLED);
291-
settings.add(SNAPSHOT_LIFECYCLE_ENABLED);
292-
settings.add(TRANSFORM_ENABLED);
293-
settings.add(FLATTENED_ENABLED);
294-
settings.add(VECTORS_ENABLED);
295-
settings.add(ENRICH_ENABLED_SETTING);
296196
return Collections.unmodifiableList(settings);
297197
}
298198

x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/Watcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public class Watcher extends Plugin implements SystemIndexPlugin, ScriptPlugin,
211211
public static final Setting<TimeValue> MAX_STOP_TIMEOUT_SETTING =
212212
Setting.timeSetting("xpack.watcher.stop.timeout", TimeValue.timeValueSeconds(30), Setting.Property.NodeScope);
213213
public static final Setting<Boolean> USE_ILM_INDEX_MANAGEMENT =
214-
Setting.boolSetting("xpack.watcher.use_ilm_index_management", XPackSettings.INDEX_LIFECYCLE_ENABLED, NodeScope);
214+
Setting.boolSetting("xpack.watcher.use_ilm_index_management", true, NodeScope);
215215
private static final Setting<Integer> SETTING_BULK_ACTIONS =
216216
Setting.intSetting("xpack.watcher.bulk.actions", 1, 1, 10000, NodeScope);
217217
private static final Setting<Integer> SETTING_BULK_CONCURRENT_REQUESTS =

x-pack/plugin/watcher/src/test/java/org/elasticsearch/xpack/watcher/WatcherPluginTests.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package org.elasticsearch.xpack.watcher;
77

88
import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
9-
import org.elasticsearch.common.settings.Setting;
109
import org.elasticsearch.common.settings.Settings;
1110
import org.elasticsearch.env.TestEnvironment;
1211
import org.elasticsearch.index.IndexModule;
@@ -16,7 +15,6 @@
1615
import org.elasticsearch.test.ESTestCase;
1716
import org.elasticsearch.test.IndexSettingsModule;
1817
import org.elasticsearch.threadpool.ExecutorBuilder;
19-
import org.elasticsearch.xpack.core.XPackSettings;
2018
import org.elasticsearch.xpack.core.watcher.watch.Watch;
2119
import org.elasticsearch.xpack.watcher.notification.NotificationService;
2220

@@ -88,23 +86,6 @@ public void testWatcherDisabledTests() throws Exception {
8886
watcher.close();
8987
}
9088

91-
public void testWatcherUseIlmFallsBackToIlmEnabled() throws Exception {
92-
boolean ilmEnabled = randomBoolean();
93-
Settings settingsWithoutWatcherUseIlm = Settings.builder()
94-
.put(XPackSettings.INDEX_LIFECYCLE_ENABLED.getKey(), ilmEnabled)
95-
.build();
96-
assertThat(Watcher.USE_ILM_INDEX_MANAGEMENT.get(settingsWithoutWatcherUseIlm), is(ilmEnabled));
97-
98-
boolean watcherUseIlmEnabled = randomBoolean();
99-
Settings settingsWithWatcherUseIlm = Settings.builder()
100-
.put(XPackSettings.INDEX_LIFECYCLE_ENABLED.getKey(), ilmEnabled)
101-
.put(Watcher.USE_ILM_INDEX_MANAGEMENT.getKey(), watcherUseIlmEnabled)
102-
.build();
103-
assertThat(Watcher.USE_ILM_INDEX_MANAGEMENT.get(settingsWithWatcherUseIlm), is(watcherUseIlmEnabled));
104-
105-
assertSettingDeprecationsAndWarnings(new Setting<?>[] { XPackSettings.INDEX_LIFECYCLE_ENABLED } );
106-
}
107-
10889
public void testThreadPoolSize() {
10990
// old calculation was 5 * number of processors
11091
assertThat(Watcher.getWatcherThreadPoolSize(true, 1), is(5));

0 commit comments

Comments
 (0)