diff --git a/server/src/test/java/org/opensearch/index/shard/RemoteStoreRefreshListenerTests.java b/server/src/test/java/org/opensearch/index/shard/RemoteStoreRefreshListenerTests.java index d4f55ab3c4057..bce1e9036f9ae 100644 --- a/server/src/test/java/org/opensearch/index/shard/RemoteStoreRefreshListenerTests.java +++ b/server/src/test/java/org/opensearch/index/shard/RemoteStoreRefreshListenerTests.java @@ -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 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());