From fafd628f525edce31dc7c35a7576393b4787081b Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Tue, 12 Oct 2021 12:20:17 +0200 Subject: Don't try to copy files if just one config server --- config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java | 1 + 1 file changed, 1 insertion(+) (limited to 'config/src/main') 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); -- cgit v1.2.3