Skip to content

Commit 58829e2

Browse files
committed
Renamed remaining leader_cluster_alias / cluster_alias to leader_cluster
1 parent c36bbdc commit 58829e2

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

x-pack/plugin/ccr/qa/rest/src/test/resources/rest-api-spec/test/ccr/auto_follow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
- do:
2323
ccr.put_auto_follow_pattern:
24-
leader_cluster_alias: local
24+
leader_cluster: local
2525
body:
2626
leader_index_patterns: ['logs-*']
2727
max_concurrent_read_batches: 2
2828
- is_true: acknowledged
2929

3030
- do:
3131
ccr.get_auto_follow_pattern:
32-
leader_cluster_alias: local
32+
leader_cluster: local
3333
- match: { local.leader_index_patterns: ['logs-*'] }
3434
- match: { local.max_concurrent_read_batches: 2 }
3535

@@ -40,10 +40,10 @@
4040

4141
- do:
4242
ccr.delete_auto_follow_pattern:
43-
leader_cluster_alias: local
43+
leader_cluster: local
4444
- is_true: acknowledged
4545

4646
- do:
4747
catch: missing
4848
ccr.get_auto_follow_pattern:
49-
leader_cluster_alias: local
49+
leader_cluster: local

x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/monitoring/collector/ccr/FollowStatsMonitoringDocTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void testToXContent() throws IOException {
108108
Tuple.tuple(randomIntBetween(0, Integer.MAX_VALUE), new ElasticsearchException("shard is sad"))));
109109
final long timeSinceLastFetchMillis = randomNonNegativeLong();
110110
final ShardFollowNodeTaskStatus status = new ShardFollowNodeTaskStatus(
111-
"cluster_alias",
111+
"leader_cluster",
112112
"leader_index",
113113
"follower_index",
114114
shardId,
@@ -152,7 +152,7 @@ public void testToXContent() throws IOException {
152152
+ "\"timestamp\":\"" + new DateTime(nodeTimestamp, DateTimeZone.UTC).toString() + "\""
153153
+ "},"
154154
+ "\"ccr_stats\":{"
155-
+ "\"leader_cluster\":\"cluster_alias\","
155+
+ "\"leader_cluster\":\"leader_cluster\","
156156
+ "\"leader_index\":\"leader_index\","
157157
+ "\"follower_index\":\"follower_index\","
158158
+ "\"shard_id\":" + shardId + ","
@@ -194,7 +194,7 @@ public void testShardFollowNodeTaskStatusFieldsMapped() throws IOException {
194194
final NavigableMap<Long, Tuple<Integer, ElasticsearchException>> fetchExceptions =
195195
new TreeMap<>(Collections.singletonMap(1L, Tuple.tuple(2, new ElasticsearchException("shard is sad"))));
196196
final ShardFollowNodeTaskStatus status = new ShardFollowNodeTaskStatus(
197-
"cluster_alias",
197+
"leader_cluster",
198198
"leader_index",
199199
"follower_index",
200200
0,

x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.delete_auto_follow_pattern.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
44
"methods": [ "DELETE" ],
55
"url": {
6-
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
7-
"paths": [ "/_ccr/auto_follow/{leader_cluster_alias}" ],
6+
"path": "/_ccr/auto_follow/{leader_cluster}",
7+
"paths": [ "/_ccr/auto_follow/{leader_cluster}" ],
88
"parts": {
9-
"leader_cluster_alias": {
9+
"leader_cluster": {
1010
"type": "string",
1111
"required": true,
1212
"description": "The name of the leader cluster alias."

x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.get_auto_follow_pattern.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
44
"methods": [ "GET" ],
55
"url": {
6-
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
7-
"paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{leader_cluster_alias}" ],
6+
"path": "/_ccr/auto_follow/{leader_cluster}",
7+
"paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{leader_cluster}" ],
88
"parts": {
9-
"leader_cluster_alias": {
9+
"leader_cluster": {
1010
"type": "string",
1111
"description": "The name of the leader cluster alias."
1212
}

x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.put_auto_follow_pattern.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
44
"methods": [ "PUT" ],
55
"url": {
6-
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
7-
"paths": [ "/_ccr/auto_follow/{leader_cluster_alias}" ],
6+
"path": "/_ccr/auto_follow/{leader_cluster}",
7+
"paths": [ "/_ccr/auto_follow/{leader_cluster}" ],
88
"parts": {
9-
"leader_cluster_alias": {
9+
"leader_cluster": {
1010
"type": "string",
1111
"required": true,
1212
"description": "The name of the leader cluster alias."

0 commit comments

Comments
 (0)