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 <[email protected]>

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

Signed-off-by: Marc Handalian <[email protected]>

* PR feedback.

Signed-off-by: Marc Handalian <[email protected]>

* spotless.

Signed-off-by: Marc Handalian <[email protected]>

Signed-off-by: Marc Handalian <[email protected]>
  • Loading branch information
mch2 authored Jan 27, 2023
1 parent ee58457 commit ade01ec
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 229 deletions.
Loading

0 comments on commit ade01ec

Please sign in to comment.