summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-11-19 10:44:55 +0100
committerHarald Musum <musum@verizonmedia.com>2020-11-19 10:44:55 +0100
commit9da2519c1e0ea9f3fe5521cabc46791c96fbe056 (patch)
tree2b8a88cb672879848f6e29e6df7f5675fd1ad692 /configserver
parent7db0cbb6af112141fec968fd49d52bbe5921aed1 (diff)
Do not throw if app has already been copied
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java b/configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java
index 8679d7d678a..93c1e4c2b50 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java
@@ -569,8 +569,10 @@ public class SessionRepository {
}
private void copyApp(File sourceDir, File destinationDir) throws IOException {
- if (destinationDir.exists())
- throw new RuntimeException("Destination dir " + destinationDir + " already exists");
+ if (destinationDir.exists()) {
+ log.log(Level.INFO, "Destination dir " + destinationDir + " already exists, app has already been copied");
+ return;
+ }
if (! sourceDir.isDirectory())
throw new IllegalArgumentException(sourceDir.getAbsolutePath() + " is not a directory");