|
| 1 | +--- |
| 2 | +"Test stats": |
| 3 | + - do: |
| 4 | + indices.create: |
| 5 | + index: foo |
| 6 | + body: |
| 7 | + settings: |
| 8 | + index: |
| 9 | + soft_deletes: |
| 10 | + enabled: true |
| 11 | + mappings: |
| 12 | + doc: |
| 13 | + properties: |
| 14 | + field: |
| 15 | + type: keyword |
| 16 | + |
| 17 | + - do: |
| 18 | + ccr.follow: |
| 19 | + index: bar |
| 20 | + body: |
| 21 | + leader_index: foo |
| 22 | + - is_true: follow_index_created |
| 23 | + - is_true: follow_index_shards_acked |
| 24 | + - is_true: index_following_started |
| 25 | + |
| 26 | + # we can not reliably wait for replication to occur so we test the endpoint without indexing any documents |
| 27 | + - do: |
| 28 | + ccr.stats: |
| 29 | + index: bar |
| 30 | + - match: { indices.0.index: "bar" } |
| 31 | + - match: { indices.0.shards.0.leader_index: "foo" } |
| 32 | + - match: { indices.0.shards.0.follower_index: "bar" } |
| 33 | + - match: { indices.0.shards.0.shard_id: 0 } |
| 34 | + - gte: { indices.0.shards.0.leader_global_checkpoint: -1 } |
| 35 | + - gte: { indices.0.shards.0.leader_max_seq_no: -1 } |
| 36 | + - gte: { indices.0.shards.0.follower_global_checkpoint: -1 } |
| 37 | + - gte: { indices.0.shards.0.follower_max_seq_no: -1 } |
| 38 | + - gte: { indices.0.shards.0.last_requested_seq_no: -1 } |
| 39 | + - gte: { indices.0.shards.0.number_of_concurrent_reads: 0 } |
| 40 | + - match: { indices.0.shards.0.number_of_concurrent_writes: 0 } |
| 41 | + - match: { indices.0.shards.0.number_of_queued_writes: 0 } |
| 42 | + - gte: { indices.0.shards.0.mapping_version: 0 } |
| 43 | + - gte: { indices.0.shards.0.total_fetch_time_millis: 0 } |
| 44 | + - gte: { indices.0.shards.0.number_of_successful_fetches: 0 } |
| 45 | + - gte: { indices.0.shards.0.number_of_failed_fetches: 0 } |
| 46 | + - match: { indices.0.shards.0.operations_received: 0 } |
| 47 | + - match: { indices.0.shards.0.total_transferred_bytes: 0 } |
| 48 | + - match: { indices.0.shards.0.total_index_time_millis: 0 } |
| 49 | + - match: { indices.0.shards.0.number_of_successful_bulk_operations: 0 } |
| 50 | + - match: { indices.0.shards.0.number_of_failed_bulk_operations: 0 } |
| 51 | + - match: { indices.0.shards.0.number_of_operations_indexed: 0 } |
| 52 | + - length: { indices.0.shards.0.fetch_exceptions: 0 } |
| 53 | + - gte: { indices.0.shards.0.time_since_last_fetch_millis: -1 } |
| 54 | + |
| 55 | + - do: |
| 56 | + ccr.pause_follow: |
| 57 | + index: bar |
| 58 | + - is_true: acknowledged |
| 59 | + |
0 commit comments