Skip to content

Commit 1b8084f

Browse files
Fix flaky testRemoteRefreshRetryOnFailure in RemoteStoreRefreshListenerIT (#10464) (#10485)
(cherry picked from commit 732ce21) Signed-off-by: Ashish Singh <ssashish@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b2a836b commit 1b8084f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/src/internalClusterTest/java/org/opensearch/remotestore/RemoteStoreRefreshListenerIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@
2828
public class RemoteStoreRefreshListenerIT extends AbstractRemoteStoreMockRepositoryIntegTestCase {
2929

3030
public void testRemoteRefreshRetryOnFailure() throws Exception {
31-
3231
Path location = randomRepoPath().toAbsolutePath();
3332
setup(location, randomDoubleBetween(0.1, 0.15, true), "metadata", 10L);
33+
client().admin()
34+
.cluster()
35+
.prepareUpdateSettings()
36+
.setPersistentSettings(Settings.builder().put(REMOTE_REFRESH_SEGMENT_PRESSURE_ENABLED.getKey(), false))
37+
.get();
3438

3539
// Here we are having flush/refresh after each iteration of indexing. However, the refresh will not always succeed
3640
// due to IOExceptions that are thrown while doing uploadBlobs.

0 commit comments

Comments
 (0)