|
14 | 14 | import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.SelectorResolver; |
15 | 15 | import org.elasticsearch.cluster.node.DiscoveryNode; |
16 | 16 | import org.elasticsearch.common.settings.ClusterSettings; |
17 | | -import org.elasticsearch.common.settings.Setting; |
18 | 17 | import org.elasticsearch.common.settings.Settings; |
19 | 18 | import org.elasticsearch.core.Strings; |
20 | 19 | import org.elasticsearch.core.Tuple; |
@@ -220,23 +219,8 @@ void validateAndUpdateRemoteCluster(LinkedClusterConnectionConfig config) { |
220 | 219 | */ |
221 | 220 | protected abstract void updateRemoteCluster(LinkedClusterConnectionConfig config); |
222 | 221 |
|
223 | | - // This will go away |
224 | 222 | public void listenForUpdates(ClusterSettings clusterSettings) { |
225 | | - List<Setting.AffixSetting<?>> remoteClusterSettings = List.of( |
226 | | - RemoteClusterService.REMOTE_CLUSTER_COMPRESS, |
227 | | - RemoteClusterService.REMOTE_CLUSTER_PING_SCHEDULE, |
228 | | - RemoteConnectionStrategy.REMOTE_CONNECTION_MODE, |
229 | | - SniffConnectionStrategy.REMOTE_CLUSTERS_PROXY, |
230 | | - SniffConnectionStrategy.REMOTE_CLUSTER_SEEDS, |
231 | | - SniffConnectionStrategy.REMOTE_NODE_CONNECTIONS, |
232 | | - ProxyConnectionStrategy.PROXY_ADDRESS, |
233 | | - ProxyConnectionStrategy.REMOTE_SOCKET_CONNECTIONS, |
234 | | - ProxyConnectionStrategy.SERVER_NAME |
235 | | - ); |
236 | | - clusterSettings.addAffixGroupUpdateConsumer( |
237 | | - remoteClusterSettings, |
238 | | - (clusterAlias, settings) -> validateAndUpdateRemoteCluster(new LinkedClusterConnectionConfig(clusterAlias, settings)) |
239 | | - ); |
| 223 | + assert false : "this will be removed"; |
240 | 224 | } |
241 | 225 |
|
242 | 226 | /** |
|
0 commit comments