diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-05-12 19:56:13 +0200 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-05-12 20:01:42 +0200 |
commit | 6e01df0f20c9d6b6c5416197e6081f141ce77f8b (patch) | |
tree | f48591810a4eed9e01368089c5287a72c4e50b02 /configserver | |
parent | d5defb7e17ae89fecc3e61946993077014da618c (diff) |
Throw IllegalStateException when activating (without prepare) for non-existent app
Diffstat (limited to 'configserver')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/deploy/Deployment.java | 2 |
1 files changed, 1 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 aabd1fd72cb..572a9ee92f9 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 @@ -128,7 +128,7 @@ 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. + throw new IllegalStateException("Application " + session.getApplicationId() + " does not exist"); validateSessionStatus(session, tenant.getApplicationRepo().preparing(session.getApplicationId())); NestedTransaction transaction = new NestedTransaction(); |