forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 3
/
follow_stats.yml
79 lines (69 loc) · 2.43 KB
/
follow_stats.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
"Test stats":
- do:
cluster.state: {}
- set: {master_node: master}
- do:
nodes.info: {}
- set: {nodes.$master.transport_address: local_ip}
- do:
cluster.put_settings:
body:
transient:
cluster.remote.local.seeds: $local_ip
flat_settings: true
- match: {transient: {cluster.remote.local.seeds: $local_ip}}
- do:
indices.create:
index: foo
body:
settings:
index:
soft_deletes:
enabled: true
mappings:
doc:
properties:
field:
type: keyword
- do:
ccr.follow:
index: bar
body:
remote_cluster: local
leader_index: foo
- is_true: follow_index_created
- is_true: follow_index_shards_acked
- is_true: index_following_started
# we can not reliably wait for replication to occur so we test the endpoint without indexing any documents
- do:
ccr.stats:
index: bar
- match: { indices.0.index: "bar" }
- match: { indices.0.shards.0.leader_index: "foo" }
- match: { indices.0.shards.0.follower_index: "bar" }
- match: { indices.0.shards.0.shard_id: 0 }
- gte: { indices.0.shards.0.leader_global_checkpoint: -1 }
- gte: { indices.0.shards.0.leader_max_seq_no: -1 }
- gte: { indices.0.shards.0.follower_global_checkpoint: -1 }
- gte: { indices.0.shards.0.follower_max_seq_no: -1 }
- gte: { indices.0.shards.0.last_requested_seq_no: -1 }
- gte: { indices.0.shards.0.outstanding_read_requests: 0 }
- match: { indices.0.shards.0.outstanding_write_requests: 0 }
- match: { indices.0.shards.0.write_buffer_operation_count: 0 }
- gte: { indices.0.shards.0.follower_mapping_version: 0 }
- gte: { indices.0.shards.0.total_read_time_millis: 0 }
- gte: { indices.0.shards.0.successful_read_requests: 0 }
- gte: { indices.0.shards.0.failed_read_requests: 0 }
- match: { indices.0.shards.0.operations_read: 0 }
- match: { indices.0.shards.0.bytes_read: 0 }
- match: { indices.0.shards.0.total_write_time_millis: 0 }
- match: { indices.0.shards.0.successful_write_requests: 0 }
- match: { indices.0.shards.0.failed_write_requests: 0 }
- match: { indices.0.shards.0.operations_written: 0 }
- length: { indices.0.shards.0.read_exceptions: 0 }
- gte: { indices.0.shards.0.time_since_last_read_millis: -1 }
- do:
ccr.pause_follow:
index: bar
- is_true: acknowledged