Renamed remaining leader_cluster_alias / cluster_alias to leader_cluster
This commit is contained in:
parent
44b461aff2
commit
56d4f69718
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
ccr.put_auto_follow_pattern:
|
ccr.put_auto_follow_pattern:
|
||||||
leader_cluster_alias: local
|
leader_cluster: local
|
||||||
body:
|
body:
|
||||||
leader_index_patterns: ['logs-*']
|
leader_index_patterns: ['logs-*']
|
||||||
max_concurrent_read_batches: 2
|
max_concurrent_read_batches: 2
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
ccr.get_auto_follow_pattern:
|
ccr.get_auto_follow_pattern:
|
||||||
leader_cluster_alias: local
|
leader_cluster: local
|
||||||
- match: { local.leader_index_patterns: ['logs-*'] }
|
- match: { local.leader_index_patterns: ['logs-*'] }
|
||||||
- match: { local.max_concurrent_read_batches: 2 }
|
- match: { local.max_concurrent_read_batches: 2 }
|
||||||
|
|
||||||
|
@ -40,10 +40,10 @@
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
ccr.delete_auto_follow_pattern:
|
ccr.delete_auto_follow_pattern:
|
||||||
leader_cluster_alias: local
|
leader_cluster: local
|
||||||
- is_true: acknowledged
|
- is_true: acknowledged
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
catch: missing
|
catch: missing
|
||||||
ccr.get_auto_follow_pattern:
|
ccr.get_auto_follow_pattern:
|
||||||
leader_cluster_alias: local
|
leader_cluster: local
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class FollowStatsMonitoringDocTests extends BaseMonitoringDocTestCase<Fol
|
||||||
Tuple.tuple(randomIntBetween(0, Integer.MAX_VALUE), new ElasticsearchException("shard is sad"))));
|
Tuple.tuple(randomIntBetween(0, Integer.MAX_VALUE), new ElasticsearchException("shard is sad"))));
|
||||||
final long timeSinceLastFetchMillis = randomNonNegativeLong();
|
final long timeSinceLastFetchMillis = randomNonNegativeLong();
|
||||||
final ShardFollowNodeTaskStatus status = new ShardFollowNodeTaskStatus(
|
final ShardFollowNodeTaskStatus status = new ShardFollowNodeTaskStatus(
|
||||||
"cluster_alias",
|
"leader_cluster",
|
||||||
"leader_index",
|
"leader_index",
|
||||||
"follower_index",
|
"follower_index",
|
||||||
shardId,
|
shardId,
|
||||||
|
@ -152,7 +152,7 @@ public class FollowStatsMonitoringDocTests extends BaseMonitoringDocTestCase<Fol
|
||||||
+ "\"timestamp\":\"" + new DateTime(nodeTimestamp, DateTimeZone.UTC).toString() + "\""
|
+ "\"timestamp\":\"" + new DateTime(nodeTimestamp, DateTimeZone.UTC).toString() + "\""
|
||||||
+ "},"
|
+ "},"
|
||||||
+ "\"ccr_stats\":{"
|
+ "\"ccr_stats\":{"
|
||||||
+ "\"leader_cluster\":\"cluster_alias\","
|
+ "\"leader_cluster\":\"leader_cluster\","
|
||||||
+ "\"leader_index\":\"leader_index\","
|
+ "\"leader_index\":\"leader_index\","
|
||||||
+ "\"follower_index\":\"follower_index\","
|
+ "\"follower_index\":\"follower_index\","
|
||||||
+ "\"shard_id\":" + shardId + ","
|
+ "\"shard_id\":" + shardId + ","
|
||||||
|
@ -194,7 +194,7 @@ public class FollowStatsMonitoringDocTests extends BaseMonitoringDocTestCase<Fol
|
||||||
final NavigableMap<Long, Tuple<Integer, ElasticsearchException>> fetchExceptions =
|
final NavigableMap<Long, Tuple<Integer, ElasticsearchException>> fetchExceptions =
|
||||||
new TreeMap<>(Collections.singletonMap(1L, Tuple.tuple(2, new ElasticsearchException("shard is sad"))));
|
new TreeMap<>(Collections.singletonMap(1L, Tuple.tuple(2, new ElasticsearchException("shard is sad"))));
|
||||||
final ShardFollowNodeTaskStatus status = new ShardFollowNodeTaskStatus(
|
final ShardFollowNodeTaskStatus status = new ShardFollowNodeTaskStatus(
|
||||||
"cluster_alias",
|
"leader_cluster",
|
||||||
"leader_index",
|
"leader_index",
|
||||||
"follower_index",
|
"follower_index",
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
|
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
|
||||||
"methods": [ "DELETE" ],
|
"methods": [ "DELETE" ],
|
||||||
"url": {
|
"url": {
|
||||||
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
|
"path": "/_ccr/auto_follow/{leader_cluster}",
|
||||||
"paths": [ "/_ccr/auto_follow/{leader_cluster_alias}" ],
|
"paths": [ "/_ccr/auto_follow/{leader_cluster}" ],
|
||||||
"parts": {
|
"parts": {
|
||||||
"leader_cluster_alias": {
|
"leader_cluster": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"required": true,
|
"required": true,
|
||||||
"description": "The name of the leader cluster alias."
|
"description": "The name of the leader cluster alias."
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
|
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
|
||||||
"methods": [ "GET" ],
|
"methods": [ "GET" ],
|
||||||
"url": {
|
"url": {
|
||||||
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
|
"path": "/_ccr/auto_follow/{leader_cluster}",
|
||||||
"paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{leader_cluster_alias}" ],
|
"paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{leader_cluster}" ],
|
||||||
"parts": {
|
"parts": {
|
||||||
"leader_cluster_alias": {
|
"leader_cluster": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The name of the leader cluster alias."
|
"description": "The name of the leader cluster alias."
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
|
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current",
|
||||||
"methods": [ "PUT" ],
|
"methods": [ "PUT" ],
|
||||||
"url": {
|
"url": {
|
||||||
"path": "/_ccr/auto_follow/{leader_cluster_alias}",
|
"path": "/_ccr/auto_follow/{leader_cluster}",
|
||||||
"paths": [ "/_ccr/auto_follow/{leader_cluster_alias}" ],
|
"paths": [ "/_ccr/auto_follow/{leader_cluster}" ],
|
||||||
"parts": {
|
"parts": {
|
||||||
"leader_cluster_alias": {
|
"leader_cluster": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"required": true,
|
"required": true,
|
||||||
"description": "The name of the leader cluster alias."
|
"description": "The name of the leader cluster alias."
|
||||||
|
|
Loading…
Reference in New Issue