diff options
author | Harald Musum <musum@verizonmedia.com> | 2020-11-19 10:44:55 +0100 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2020-11-19 10:44:55 +0100 |
commit | 9da2519c1e0ea9f3fe5521cabc46791c96fbe056 (patch) | |
tree | 2b8a88cb672879848f6e29e6df7f5675fd1ad692 /configserver | |
parent | 7db0cbb6af112141fec968fd49d52bbe5921aed1 (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.java | 6 |
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"); |