diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-01-05 09:34:31 +0100 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2021-01-05 09:34:31 +0100 |
commit | 1dddbef30b58256fe7de5a97f2980c92d5fa17e5 (patch) | |
tree | 820d88c962e237ad0e5475637a803c4d4f7146d9 /configserver | |
parent | 7f7328ac1a8ee82307ad5a4c9ae324776841f80d (diff) |
Don't swallow exception
Diffstat (limited to 'configserver')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/zookeeper/InitializedCounter.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/zookeeper/InitializedCounter.java b/configserver/src/main/java/com/yahoo/vespa/config/server/zookeeper/InitializedCounter.java index 389649f4680..6a1eaba34a6 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/zookeeper/InitializedCounter.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/zookeeper/InitializedCounter.java @@ -1,4 +1,4 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.config.server.zookeeper; import java.util.logging.Level; @@ -41,13 +41,7 @@ public class InitializedCounter { * @return true, if an application exists, false otherwise */ private static boolean applicationExists(ConfigCurator configCurator, String appsPath) { - // TODO Need to try and catch now since interface should not expose Zookeeper exceptions - try { - return configCurator.exists(appsPath); - } catch (Exception e) { - log.log(Level.WARNING, e.getMessage()); - return false; - } + return configCurator.exists(appsPath); } /** |