Fix CCR stats assertions

This commit addresses a race that can happen in the basic CCR stats REST
tests. Namely, peek reads can fire before the REST test client fires the
stats request. This means that we have to weaken our assertions about
the expected stats response.
This commit is contained in:
Jason Tedor 2018-08-05 08:53:08 -04:00
parent 32c2759bb9
commit 1a39f1d6c5
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 10 additions and 10 deletions

View File

@ -25,18 +25,18 @@
ccr.stats: ccr.stats:
index: bar index: bar
- match: { bar.0.shard_id: 0 } - match: { bar.0.shard_id: 0 }
- match: { bar.0.leader_global_checkpoint: -1 } - gte: { bar.0.leader_global_checkpoint: -1 }
- match: { bar.0.leader_max_seq_no: -1 } - gte: { bar.0.leader_max_seq_no: -1 }
- match: { bar.0.follower_global_checkpoint: -1 } - gte: { bar.0.follower_global_checkpoint: -1 }
- match: { bar.0.follower_max_seq_no: -1 } - gte: { bar.0.follower_max_seq_no: -1 }
- match: { bar.0.last_requested_seq_no: -1 } - gte: { bar.0.last_requested_seq_no: -1 }
- match: { bar.0.number_of_concurrent_reads: 0 } - gte: { bar.0.number_of_concurrent_reads: 0 }
- match: { bar.0.number_of_concurrent_writes: 0 } - match: { bar.0.number_of_concurrent_writes: 0 }
- match: { bar.0.number_of_queued_writes: 0 } - match: { bar.0.number_of_queued_writes: 0 }
- match: { bar.0.index_metadata_version: 0 } - gte: { bar.0.index_metadata_version: 0 }
- match: { bar.0.total_fetch_time_millis: 0 } - gte: { bar.0.total_fetch_time_millis: 0 }
- match: { bar.0.number_of_successful_fetches: 0 } - gte: { bar.0.number_of_successful_fetches: 0 }
- match: { bar.0.number_of_failed_fetches: 0 } - gte: { bar.0.number_of_failed_fetches: 0 }
- match: { bar.0.operations_received: 0 } - match: { bar.0.operations_received: 0 }
- match: { bar.0.total_transferred_bytes: 0 } - match: { bar.0.total_transferred_bytes: 0 }
- match: { bar.0.total_index_time_millis: 0 } - match: { bar.0.total_index_time_millis: 0 }