summaryrefslogtreecommitdiffstats
path: root/filedistribution
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2021-10-14 11:52:36 +0200
committerHarald Musum <musum@yahooinc.com>2021-10-14 11:52:36 +0200
commitffe1453578849b7ed82fe2c00df1d895d4f0e584 (patch)
tree6add5b8c801329540b33de15682d886a584bc05a /filedistribution
parent5a3c92ad0a9b3bfb77c215f9b415bac8eed83e97 (diff)
Improve download of application package in maintainer
Set downloadFromOtherSourceIfNotFound to false, so that the receiving config server that gets the request don't try to download a file reference. This will be done by the ApplicationPackageMaintainer on the other server anyway.
Diffstat (limited to 'filedistribution')
-rw-r--r--filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileDownloader.java4
-rw-r--r--filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileReferenceDownload.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileDownloader.java b/filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileDownloader.java
index 0eef005311d..32b7a0a167e 100644
--- a/filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileDownloader.java
+++ b/filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileDownloader.java
@@ -41,8 +41,8 @@ public class FileDownloader implements AutoCloseable {
private final FileReferenceDownloader fileReferenceDownloader;
private final Downloads downloads;
- public FileDownloader(List<String> configservers, Supervisor supervisor) {
- this(getConnectionPool(configservers, supervisor), supervisor);
+ public FileDownloader(List<String> configServers, Supervisor supervisor) {
+ this(getConnectionPool(configServers, supervisor), supervisor);
}
public FileDownloader(ConnectionPool connectionPool, Supervisor supervisor) {
diff --git a/filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileReferenceDownload.java b/filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileReferenceDownload.java
index cf62a67484e..470d94ce749 100644
--- a/filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileReferenceDownload.java
+++ b/filedistribution/src/main/java/com/yahoo/vespa/filedistribution/FileReferenceDownload.java
@@ -13,7 +13,7 @@ public class FileReferenceDownload {
private final FileReference fileReference;
private final CompletableFuture<Optional<File>> future;
// If a config server wants to download from another config server (because it does not have the
- // file itself) we set this flag to true to avoid an eternal loop
+ // file itself) we set this flag to false to avoid an eternal loop
private final boolean downloadFromOtherSourceIfNotFound;
private final String client;