From 430580ba6301391f64bc3180edcd95bcfee97236 Mon Sep 17 00:00:00 2001 From: Harald Musum Date: Tue, 31 Oct 2023 09:02:46 +0100 Subject: Don't delete session if activation fails Activation fails from other causes than something being wrong with the application (preparing the application was usually successful), so it should be possible to retry with the same session. --- .../src/main/java/com/yahoo/vespa/config/server/deploy/Deployment.java | 1 - 1 file changed, 1 deletion(-) 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 9c7e018545f..d2ed2609490 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 @@ -137,7 +137,6 @@ public class Deployment implements com.yahoo.config.provision.Deployment { waitForActivation(applicationId, timeoutBudget, activation); } catch (Exception e) { log.log(Level.FINE, "Activating session " + session.getSessionId() + " failed, deleting it"); - deleteSession(); throw e; } -- cgit v1.2.3