Skip to content

Commit 11646a4

Browse files
author
Tianli Feng
committed
Rename cluster.initial_master_nodes to cluster.initial_cluster_manager_nodes
Signed-off-by: Tianli Feng <ftianli@amazon.com>
1 parent 4ea1231 commit 11646a4

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

buildSrc/src/main/groovy/org/opensearch/gradle/test/ClusterFormationTasks.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class ClusterFormationTasks {
153153
}
154154
boolean supportsInitialMasterNodes = hasBwcNodes == false || config.bwcVersion.onOrAfter("7.0.0")
155155
if (esConfig['discovery.type'] == null && config.getAutoSetInitialMasterNodes() && supportsInitialMasterNodes) {
156-
esConfig['cluster.initial_master_nodes'] = nodes.stream().map({ n ->
156+
esConfig['cluster.initial_cluster_manager_nodes'] = nodes.stream().map({ n ->
157157
if (n.config.settings['node.name'] == null) {
158158
return "node-" + n.nodeNum
159159
} else {

buildSrc/src/main/java/org/opensearch/gradle/testclusters/OpenSearchCluster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ private void commonNodeConfig(OpenSearchNode node, String nodeNames, OpenSearchN
361361
.collect(Collectors.toList())
362362
.forEach(node.defaultConfig::remove);
363363
if (nodeNames != null && node.settings.getOrDefault("discovery.type", "anything").equals("single-node") == false) {
364-
node.defaultConfig.put("cluster.initial_master_nodes", "[" + nodeNames + "]");
364+
node.defaultConfig.put("cluster.initial_cluster_manager_nodes", "[" + nodeNames + "]");
365365
}
366366
node.defaultConfig.put("discovery.seed_providers", "file");
367367
node.defaultConfig.put("discovery.seed_hosts", "[]");

distribution/docker/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
image: opensearch:test
66
environment:
77
- node.name=opensearch-1
8-
- cluster.initial_master_nodes=opensearch-1,opensearch-2
8+
- cluster.initial_cluster_manager_nodes=opensearch-1,opensearch-2
99
- discovery.seed_hosts=opensearch-2:9300
1010
- cluster.name=opensearch
1111
- bootstrap.memory_lock=true
@@ -29,7 +29,7 @@ services:
2929
image: opensearch:test
3030
environment:
3131
- node.name=opensearch-2
32-
- cluster.initial_master_nodes=opensearch-1,opensearch-2
32+
- cluster.initial_cluster_manager_nodes_nodes=opensearch-1,opensearch-2
3333
- discovery.seed_hosts=opensearch-1:9300
3434
- cluster.name=opensearch
3535
- bootstrap.memory_lock=true

distribution/src/config/opensearch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ${path.logs}
6969
#
7070
# Bootstrap the cluster using an initial set of master-eligible nodes:
7171
#
72-
#cluster.initial_master_nodes: ["node-1", "node-2"]
72+
#cluster.initial_cluster_manager_nodes: ["node-1", "node-2"]
7373
#
7474
# For more information, consult the discovery and cluster formation module documentation.
7575
#

qa/remote-clusters/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
image: opensearch:test
66
environment:
77
- node.name=opensearch-1
8-
- cluster.initial_master_nodes=opensearch-1
8+
- cluster.initial_cluster_manager_nodes=opensearch-1
99
- cluster.name=opensearch-1
1010
- bootstrap.memory_lock=true
1111
- network.publish_host=127.0.0.1
@@ -39,7 +39,7 @@ services:
3939
image: opensearch:test
4040
environment:
4141
- node.name=opensearch-2
42-
- cluster.initial_master_nodes=opensearch-2
42+
- cluster.initial_cluster_manager_nodes=opensearch-2
4343
- cluster.name=opensearch-2
4444
- bootstrap.memory_lock=true
4545
- network.publish_host=127.0.0.1

server/src/test/java/org/opensearch/bootstrap/BootstrapChecksTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ public void testDiscoveryConfiguredCheck() throws NodeValidationException {
802802
hasToString(
803803
containsString(
804804
"the default discovery settings are unsuitable for production use; at least one "
805-
+ "of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured"
805+
+ "of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_cluster_manager_nodes] must be configured"
806806
)
807807
)
808808
);

server/src/test/java/org/opensearch/cluster/coordination/ClusterFormationFailureHelperTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public void testDescriptionBeforeBootstrapping() {
329329
).getDescription(),
330330
is(
331331
"master not discovered yet, this node has not previously joined a bootstrapped cluster, and "
332-
+ "[cluster.initial_master_nodes] is empty on this node: have discovered []; "
332+
+ "[cluster.initial_cluster_manager_nodes] is empty on this node: have discovered []; "
333333
+ "discovery will continue using [] from hosts providers and ["
334334
+ localNode
335335
+ "] from last-known cluster state; node term 1, last-accepted version 7 in term 4"
@@ -349,7 +349,7 @@ public void testDescriptionBeforeBootstrapping() {
349349
).getDescription(),
350350
is(
351351
"master not discovered yet, this node has not previously joined a bootstrapped cluster, and "
352-
+ "[cluster.initial_master_nodes] is empty on this node: have discovered []; "
352+
+ "[cluster.initial_cluster_manager_nodes] is empty on this node: have discovered []; "
353353
+ "discovery will continue using ["
354354
+ otherAddress
355355
+ "] from hosts providers and ["
@@ -371,7 +371,7 @@ public void testDescriptionBeforeBootstrapping() {
371371
).getDescription(),
372372
is(
373373
"master not discovered yet, this node has not previously joined a bootstrapped cluster, and "
374-
+ "[cluster.initial_master_nodes] is empty on this node: have discovered ["
374+
+ "[cluster.initial_cluster_manager_nodes] is empty on this node: have discovered ["
375375
+ otherNode
376376
+ "]; "
377377
+ "discovery will continue using [] from hosts providers and ["

0 commit comments

Comments
 (0)