Skip to content

Commit

Permalink
Fix flaky SegmentReplicationITs. (#6015)
Browse files Browse the repository at this point in the history
* Fix flaky SegmentReplicationITs.

This change fixes flakiness with segment replication ITs.
It does this by updating the wait condition used to ensure replicas are up to date
to wait until a searched docCount is reached instead of output of the Segments API that can change
if there are concurrent refreshes.
It also does this by updating the method used to assert segment stats to wait until the assertion holds true rather
than at a point in time.  This method is also updated to assert store metadata directly over API output.

Signed-off-by: Marc Handalian <handalm@amazon.com>

* Fix error message to print expected and actual doc counts.

Signed-off-by: Marc Handalian <handalm@amazon.com>

* PR feedback.

Signed-off-by: Marc Handalian <handalm@amazon.com>

* spotless.

Signed-off-by: Marc Handalian <handalm@amazon.com>

Signed-off-by: Marc Handalian <handalm@amazon.com>
  • Loading branch information
mch2 authored and dreamer-89 committed Jan 27, 2023
1 parent 125aaf4 commit 334c597
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 229 deletions.
Loading

0 comments on commit 334c597

Please sign in to comment.