diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2020-01-21 14:40:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 14:40:30 +0100 |
commit | 453b25b97335bbab94183d0c39e2a48a3256d003 (patch) | |
tree | 9d804f7cef4164c1b6ba8b0e2ed559d0b8b29321 /configserver | |
parent | f12b206daa01b1a887b99e068e69be9baac8c091 (diff) | |
parent | 326338f1d90f49607ea92e31278870a99a6243c5 (diff) |
Merge pull request #11871 from vespa-engine/hmusum/throw-exception-if-remote-session-not-found-for-active-application
Throw exception if remote session not found for active application
Diffstat (limited to 'configserver')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java b/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java index 7ee6febfac1..e9032555b09 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java @@ -477,6 +477,7 @@ public class ApplicationRepository implements com.yahoo.config.provision.Deploye if (tenant == null) throw new NotFoundException("Tenant '" + applicationId.tenant() + "' not found"); long sessionId = getSessionIdForApplication(tenant, applicationId); RemoteSession session = tenant.getRemoteSessionRepo().getSession(sessionId); + if (session == null) throw new NotFoundException("Remote session " + sessionId + " not found"); return session.ensureApplicationLoaded().getForVersionOrLatest(version, clock.instant()); } catch (NotFoundException e) { log.log(LogLevel.WARNING, "Failed getting application for '" + applicationId + "': " + e.getMessage()); |