Skip to content

Commit

Permalink
Removing redundant test
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna committed Jan 18, 2024
1 parent e544876 commit 1cf7a03
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,20 +405,6 @@ public void testRefreshSuccessOnThirdAttempt() throws Exception {
assertNoLagAndTotalUploadsFailed(segmentTracker, 2);
}

public void testRefreshPersistentFailure() throws Exception {
int succeedOnAttempt = 10;
CountDownLatch refreshCountLatch = new CountDownLatch(1);
CountDownLatch successLatch = new CountDownLatch(10);
Tuple<RemoteStoreRefreshListener, RemoteStoreStatsTrackerFactory> tuple = mockIndexShardWithRetryAndScheduleRefresh(
succeedOnAttempt,
refreshCountLatch,
successLatch
);
// Giving 10ms for some iterations of remote refresh upload
Thread.sleep(10);
assertFalse("remote store should not in sync", indexShard.isRemoteSegmentStoreInSync(false));
}

private void assertNoLagAndTotalUploadsFailed(RemoteSegmentTransferTracker segmentTracker, long totalUploadsFailed) throws Exception {
assertBusy(() -> {
assertEquals(0, segmentTracker.getBytesLag());
Expand Down

0 comments on commit 1cf7a03

Please sign in to comment.