Skip to content

Commit 746140f

Browse files
committed
Register remote cluster compress setting (#35464)
This is a follow up to #35357. That commit failed to register the new cluster.remote.cluster_name.transport.compress setting with `ClusterSettings`. This commit fixes that.
1 parent 6d1da59 commit 746140f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/common/settings/ClusterSettings.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ public void apply(Settings value, Settings current, Settings previous) {
296296
RemoteClusterService.ENABLE_REMOTE_CLUSTERS,
297297
RemoteClusterService.SEARCH_ENABLE_REMOTE_CLUSTERS,
298298
RemoteClusterService.REMOTE_CLUSTER_PING_SCHEDULE,
299+
RemoteClusterService.REMOTE_CLUSTER_COMPRESS,
299300
TransportService.TRACE_LOG_EXCLUDE_SETTING,
300301
TransportService.TRACE_LOG_INCLUDE_SETTING,
301302
TransportCloseIndexAction.CLUSTER_INDICES_CLOSE_ENABLE_SETTING,

server/src/test/java/org/elasticsearch/transport/RemoteClusterServiceTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public void testSettingsAreRegistered() {
9898
assertTrue(ClusterSettings.BUILT_IN_CLUSTER_SETTINGS.contains(RemoteClusterService.REMOTE_INITIAL_CONNECTION_TIMEOUT_SETTING));
9999
assertTrue(ClusterSettings.BUILT_IN_CLUSTER_SETTINGS.contains(RemoteClusterService.REMOTE_NODE_ATTRIBUTE));
100100
assertTrue(ClusterSettings.BUILT_IN_CLUSTER_SETTINGS.contains(RemoteClusterService.REMOTE_CLUSTER_PING_SCHEDULE));
101+
assertTrue(ClusterSettings.BUILT_IN_CLUSTER_SETTINGS.contains(RemoteClusterService.REMOTE_CLUSTER_COMPRESS));
101102
}
102103

103104
public void testRemoteClusterSeedSetting() {

0 commit comments

Comments
 (0)