summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2019-03-01 11:11:14 +0100
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2019-05-08 20:27:41 +0200
commit03e0798f6d3dc3543051ca793cdafec16eb85ab4 (patch)
treedc5292f965844f664ecb55503fbd0ddd21204066 /configserver
parentfde8c9a038d3838ae3924835290f32e6715bc06b (diff)
Create applications only during deployment, and abort activation of non-existing apps
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/deploy/Deployment.java3
1 files changed, 3 insertions, 0 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 b6e1d1873c9..6d875c529a3 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
@@ -121,6 +121,9 @@ public class Deployment implements com.yahoo.config.provision.Deployment {
TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);
try (Lock lock = tenant.getApplicationRepo().lock(session.getApplicationId())) {
+ if ( ! tenant.getApplicationRepo().exists(session.getApplicationId()))
+ return; // Application was deleted.
+
validateSessionStatus(session);
NestedTransaction transaction = new NestedTransaction();
transaction.add(deactivateCurrentActivateNew(applicationRepository.getActiveSession(session.getApplicationId()), session, ignoreSessionStaleFailure));