Skip to content

Commit

Permalink
Merge pull request #32161 from vespa-engine/hmusum/revert-change-to-i…
Browse files Browse the repository at this point in the history
…nitial-backoff-time

Revert back to 5 seconds as initial backoff time
  • Loading branch information
Harald Musum authored Aug 17, 2024
2 parents 84c1360 + b4b9187 commit 8354311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class FileDownloader implements AutoCloseable {
static {
// Undocumented on purpose, might change or be removed at any time
var backOff = System.getenv("VESPA_FILE_DOWNLOAD_BACKOFF_INITIAL_TIME_MS");
backoffInitialTime = Duration.ofMillis(backOff == null ? 1000 : Long.parseLong(backOff));
backoffInitialTime = Duration.ofMillis(backOff == null ? 5000 : Long.parseLong(backOff));
}

public FileDownloader(ConnectionPool connectionPool, Supervisor supervisor, Duration timeout) {
Expand Down
2 changes: 1 addition & 1 deletion flags/src/main/java/com/yahoo/vespa/flags/Flags.java
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ public class Flags {
"Takes effect on next host-admin run");

public static final UnboundLongFlag FILE_DOWNLOAD_BACKOFF_INITIAL_TIME = defineLongFlag(
"file-download-backoff-initial-time", 1000,
"file-download-backoff-initial-time", 5000,
List.of("hmusum"), "2024-08-16", "2024-09-16",
"Initial backoff time in milliseconds when failing to download a file reference",
"Takes effect on restart of Docker container");
Expand Down

0 comments on commit 8354311

Please sign in to comment.