|
27 | 27 | import org.elasticsearch.cluster.version.CompatibilityVersions;
|
28 | 28 | import org.elasticsearch.common.Randomness;
|
29 | 29 | import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
30 |
| -import org.elasticsearch.common.logging.DeprecationCategory; |
31 |
| -import org.elasticsearch.common.logging.DeprecationLogger; |
32 | 30 | import org.elasticsearch.common.network.NetworkService;
|
33 | 31 | import org.elasticsearch.common.settings.ClusterSettings;
|
34 | 32 | import org.elasticsearch.common.settings.Setting;
|
35 | 33 | import org.elasticsearch.common.settings.Setting.Property;
|
36 | 34 | import org.elasticsearch.common.settings.Settings;
|
37 | 35 | import org.elasticsearch.common.transport.TransportAddress;
|
38 |
| -import org.elasticsearch.core.UpdateForV9; |
39 | 36 | import org.elasticsearch.features.FeatureService;
|
40 | 37 | import org.elasticsearch.gateway.GatewayMetaState;
|
41 | 38 | import org.elasticsearch.indices.breaker.CircuitBreakerService;
|
@@ -70,8 +67,6 @@ public class DiscoveryModule extends AbstractModule {
|
70 | 67 |
|
71 | 68 | public static final String MULTI_NODE_DISCOVERY_TYPE = "multi-node";
|
72 | 69 | public static final String SINGLE_NODE_DISCOVERY_TYPE = "single-node";
|
73 |
| - @Deprecated |
74 |
| - public static final String LEGACY_MULTI_NODE_DISCOVERY_TYPE = "zen"; |
75 | 70 |
|
76 | 71 | public static final Setting<String> DISCOVERY_TYPE_SETTING = new Setting<>(
|
77 | 72 | "discovery.type",
|
@@ -175,15 +170,11 @@ public DiscoveryModule(
|
175 | 170 | throw new IllegalArgumentException("Unknown election strategy " + ELECTION_STRATEGY_SETTING.get(settings));
|
176 | 171 | }
|
177 | 172 |
|
178 |
| - checkLegacyMultiNodeDiscoveryType(discoveryType); |
179 |
| - |
180 | 173 | this.reconfigurator = getReconfigurator(settings, clusterSettings, clusterCoordinationPlugins);
|
181 | 174 | var preVoteCollectorFactory = getPreVoteCollectorFactory(clusterCoordinationPlugins);
|
182 | 175 | var leaderHeartbeatService = getLeaderHeartbeatService(settings, clusterCoordinationPlugins);
|
183 | 176 |
|
184 |
| - if (MULTI_NODE_DISCOVERY_TYPE.equals(discoveryType) |
185 |
| - || LEGACY_MULTI_NODE_DISCOVERY_TYPE.equals(discoveryType) |
186 |
| - || SINGLE_NODE_DISCOVERY_TYPE.equals(discoveryType)) { |
| 177 | + if (MULTI_NODE_DISCOVERY_TYPE.equals(discoveryType) || SINGLE_NODE_DISCOVERY_TYPE.equals(discoveryType)) { |
187 | 178 | coordinator = new Coordinator(
|
188 | 179 | NODE_NAME_SETTING.get(settings),
|
189 | 180 | settings,
|
@@ -215,22 +206,6 @@ public DiscoveryModule(
|
215 | 206 | logger.info("using discovery type [{}] and seed hosts providers {}", discoveryType, seedProviderNames);
|
216 | 207 | }
|
217 | 208 |
|
218 |
| - @UpdateForV9 |
219 |
| - private static void checkLegacyMultiNodeDiscoveryType(String discoveryType) { |
220 |
| - if (LEGACY_MULTI_NODE_DISCOVERY_TYPE.equals(discoveryType)) { |
221 |
| - DeprecationLogger.getLogger(DiscoveryModule.class) |
222 |
| - .critical( |
223 |
| - DeprecationCategory.SETTINGS, |
224 |
| - "legacy-discovery-type", |
225 |
| - "Support for setting [{}] to [{}] is deprecated and will be removed in a future version. Set this setting to [{}] " |
226 |
| - + "instead.", |
227 |
| - DISCOVERY_TYPE_SETTING.getKey(), |
228 |
| - LEGACY_MULTI_NODE_DISCOVERY_TYPE, |
229 |
| - MULTI_NODE_DISCOVERY_TYPE |
230 |
| - ); |
231 |
| - } |
232 |
| - } |
233 |
| - |
234 | 209 | // visible for testing
|
235 | 210 | static Reconfigurator getReconfigurator(
|
236 | 211 | Settings settings,
|
|
0 commit comments