summaryrefslogtreecommitdiffstats
path: root/config/src/main
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-10-12 12:20:17 +0200
committerJon Bratseth <bratseth@gmail.com>2021-10-12 12:20:17 +0200
commitfafd628f525edce31dc7c35a7576393b4787081b (patch)
treee0bd8ae24f044563f33240ce4c0e071cbc149566 /config/src/main
parentf889f5f3df5411901f549f1a7144ad0845e01103 (diff)
Don't try to copy files if just one config server
Diffstat (limited to 'config/src/main')
-rw-r--r--config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
index 048c82b1bde..14385cbc90e 100644
--- a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
+++ b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
@@ -41,6 +41,7 @@ public class JRTConnectionPool implements ConnectionPool {
}
public JRTConnectionPool(ConfigSourceSet sourceSet, Supervisor supervisor) {
+ if (sourceSet.getSources().isEmpty()) throw new IllegalArgumentException("sourceSet cannot be empty");
this.supervisor = supervisor;
this.poolName = supervisor.transport().getName();
addSources(sourceSet);