Skip to content

Commit 8868f2b

Browse files
committed
Change default for maximum delay
1 parent e6b4940 commit 8868f2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/reference/snapshot-restore/repository-s3.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ include::repository-shared-settings.asciidoc[]
335335

336336
`throttled_delete_retry.maximum_delay`::
337337

338-
(integer) This is the upper bound on how long the delays between retries will grow to. Default is 500ms, minimum is 0ms.
338+
(integer) This is the upper bound on how long the delays between retries will grow to. Default is 5s, minimum is 0ms.
339339

340340
`throttled_delete_retry.maximum_number_of_retries`::
341341

modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3Repository.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ class S3Repository extends MeteredBlobStoreRepository {
209209
*/
210210
static final Setting<TimeValue> RETRY_THROTTLED_DELETE_DELAY_INCREMENT = Setting.timeSetting(
211211
"throttled_delete_retry.delay_increment",
212-
new TimeValue(50, TimeUnit.MILLISECONDS),
212+
TimeValue.timeValueMillis(50),
213213
TimeValue.ZERO
214214
);
215215
static final Setting<TimeValue> RETRY_THROTTLED_DELETE_MAXIMUM_DELAY = Setting.timeSetting(
216216
"throttled_delete_retry.maximum_delay",
217-
new TimeValue(500, TimeUnit.MILLISECONDS),
218-
TimeValue.ZERO
217+
TimeValue.timeValueSeconds(5),
218+
TimeValue.ZERO
219219
);
220220
static final Setting<Integer> RETRY_THROTTLED_DELETE_MAX_NUMBER_OF_RETRIES = Setting.intSetting(
221221
"throttled_delete_retry.maximum_number_of_retries",

0 commit comments

Comments
 (0)