Skip to content

Commit

Permalink
Fix flakyness in RemoteStoreRefreshListenerTests
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Singh <[email protected]>
  • Loading branch information
ashking94 committed Jul 9, 2023
1 parent fa34121 commit cfb5514
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,12 @@ public void testRefreshSuccessOnThirdAttemptAttempt() throws Exception {
assertBusy(() -> assertEquals(0, successLatch.getCount()));
RemoteRefreshSegmentPressureService pressureService = tuple.v2();
RemoteRefreshSegmentTracker segmentTracker = pressureService.getRemoteRefreshSegmentTracker(indexShard.shardId());
assertEquals(0, segmentTracker.getBytesLag());
assertEquals(0, segmentTracker.getRefreshSeqNoLag());
assertEquals(0, segmentTracker.getTimeMsLag());
assertEquals(2, segmentTracker.getTotalUploadsFailed());

assertBusy(() -> {
assertEquals(0, segmentTracker.getBytesLag());
assertEquals(0, segmentTracker.getRefreshSeqNoLag());
assertEquals(0, segmentTracker.getTimeMsLag());
assertEquals(2, segmentTracker.getTotalUploadsFailed());
});
}

public void testTrackerData() throws Exception {
Expand Down

0 comments on commit cfb5514

Please sign in to comment.