Increase Timeout in testDynamicRestoreThrottling (#63300) (#63324)

Even if we increase the limit it might not take effect straight away if a thread is
blocked on a long wait in `org.elasticsearch.index.snapshots.blobstore.RateLimitingInputStream#maybePause`.
Let's increase the limit a little and see if that deals with the remaining failures for good and stop burning
cycles busy asserting a future completion.

Closes #63246
This commit is contained in:
Armin Braun 2020-10-06 15:27:05 +02:00 committed by GitHub
parent a72d7cc76a
commit a8dbab23a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -526,10 +526,8 @@ public class RestoreSnapshotIT extends AbstractSnapshotIntegTestCase {
client.admin().cluster().prepareUpdateSettings().setTransientSettings(Settings.builder() client.admin().cluster().prepareUpdateSettings().setTransientSettings(Settings.builder()
.putNull(INDICES_RECOVERY_MAX_BYTES_PER_SEC_SETTING.getKey()).build()).get(); .putNull(INDICES_RECOVERY_MAX_BYTES_PER_SEC_SETTING.getKey()).build()).get();
// check that restore now completes quickly (i.e. within 10 seconds) // check that restore now completes quickly (i.e. within 20 seconds)
assertBusy(() -> assertTrue(restoreSnapshotResponse.isDone())); assertThat(restoreSnapshotResponse.get(20L, TimeUnit.SECONDS).getRestoreInfo().totalShards(), greaterThan(0));
assertThat(restoreSnapshotResponse.get().getRestoreInfo().totalShards(), greaterThan(0));
assertDocCount("test-idx", 100L); assertDocCount("test-idx", 100L);
} }