Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Revert back to 5 seconds as initial backoff time" #32166

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ? 5000 : Long.parseLong(backOff));
backoffInitialTime = Duration.ofMillis(backOff == null ? 1000 : 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", 5000,
"file-download-backoff-initial-time", 1000,
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