summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2019-05-12 11:19:03 +0200
committerGitHub <noreply@github.com>2019-05-12 11:19:03 +0200
commit85229632057c0135afeb5b909db89156a1d98029 (patch)
tree840cab9ba4a434731533f721f787a8fc47c457c9 /configserver
parent78aabf6b7ed77a1246ff84ded0c7468892a36918 (diff)
Only abort redeploymebts
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/deploy/Deployment.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/Deployment.java b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/Deployment.java
index e8561537bec..3fac3f3e982 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/Deployment.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/Deployment.java
@@ -170,7 +170,10 @@ public class Deployment implements com.yahoo.config.provision.Deployment {
throw new IllegalStateException(localSession.logPre() + "Session " + localSession.getSessionId() + " is already active");
if (Session.Status.NEW.equals(localSession.getStatus()))
- throw new IllegalStateException(localSession.logPre() + "Session " + localSession.getSessionId() + " is not prepared");
+ throw new IllegalStateException(localSession.logPre() + "Session " + localSession.getSessionId() + " is not
+
+ if ( ! localSession.getMetaData().isInternalRedeploy())
+ return;
if (preparing.isEmpty())
throw new IllegalStateException("No session is currently being prepared for '" + session.getApplicationId() + "'");