Renamed remaining leader_cluster_alias / cluster_alias to leader_cluster

This commit is contained in:
Martijn van Groningen 2018-10-19 07:59:20 +02:00
parent 44b461aff2
commit 56d4f69718
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
5 changed files with 16 additions and 16 deletions

View File

@ -21,7 +21,7 @@
- do:
ccr.put_auto_follow_pattern:
leader_cluster_alias: local
leader_cluster: local
body:
leader_index_patterns: ['logs-*']
max_concurrent_read_batches: 2
@ -29,7 +29,7 @@
- do:
ccr.get_auto_follow_pattern:
leader_cluster_alias: local
leader_cluster: local
- match: { local.leader_index_patterns: ['logs-*'] }
- match: { local.max_concurrent_read_batches: 2 }
@ -40,10 +40,10 @@
- do:
ccr.delete_auto_follow_pattern:
leader_cluster_alias: local
leader_cluster: local
- is_true: acknowledged
- do:
catch: missing
ccr.get_auto_follow_pattern:
leader_cluster_alias: local
leader_cluster: local

View File

@ -108,7 +108,7 @@ public class FollowStatsMonitoringDocTests extends BaseMonitoringDocTestCase<Fol
Tuple.tuple(randomIntBetween(0, Integer.MAX_VALUE), new ElasticsearchException("shard is sad"))));
final long timeSinceLastFetchMillis = randomNonNegativeLong();
final ShardFollowNodeTaskStatus status = new ShardFollowNodeTaskStatus(
"cluster_alias",
"leader_cluster",
"leader_index",
"follower_index",
shardId,
@ -152,7 +152,7 @@ public class FollowStatsMonitoringDocTests extends BaseMonitoringDocTestCase<Fol
+ "\"timestamp\":\"" + new DateTime(nodeTimestamp, DateTimeZone.UTC).toString() + "\""
+ "},"
+ "\"ccr_stats\":{"
+ "\"leader_cluster\":\"cluster_alias\","
+ "\"leader_cluster\":\"leader_cluster\","
+ "\"leader_index\":\"leader_index\","
+ "\"follower_index\":\"follower_index\","
+ "\"shard_id\":" + shardId + ","
@ -194,7 +194,7 @@ public class FollowStatsMonitoringDocTests extends BaseMonitoringDocTestCase<Fol
final NavigableMap<Long, Tuple<Integer, ElasticsearchException>> fetchExceptions =
new TreeMap<>(Collections.singletonMap(1L, Tuple.tuple(2, new ElasticsearchException("shard is sad"))));
final ShardFollowNodeTaskStatus status = new ShardFollowNodeTaskStatus(
"cluster_alias",
"leader_cluster",
"leader_index",
"follower_index",
0,

View File

@ -3,10 +3,10 @@
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
"methods": [ "DELETE" ],
"url": {
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
"paths": [ "/_ccr/auto_follow/{leader_cluster_alias}" ],
"path": "/_ccr/auto_follow/{leader_cluster}",
"paths": [ "/_ccr/auto_follow/{leader_cluster}" ],
"parts": {
"leader_cluster_alias": {
"leader_cluster": {
"type": "string",
"required": true,
"description": "The name of the leader cluster alias."

View File

@ -3,10 +3,10 @@
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
"methods": [ "GET" ],
"url": {
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
"paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{leader_cluster_alias}" ],
"path": "/_ccr/auto_follow/{leader_cluster}",
"paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{leader_cluster}" ],
"parts": {
"leader_cluster_alias": {
"leader_cluster": {
"type": "string",
"description": "The name of the leader cluster alias."
}

View File

@ -3,10 +3,10 @@
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
"methods": [ "PUT" ],
"url": {
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
"paths": [ "/_ccr/auto_follow/{leader_cluster_alias}" ],
"path": "/_ccr/auto_follow/{leader_cluster}",
"paths": [ "/_ccr/auto_follow/{leader_cluster}" ],
"parts": {
"leader_cluster_alias": {
"leader_cluster": {
"type": "string",
"required": true,
"description": "The name of the leader cluster alias."