diff options
author | Harald Musum <musum@yahoo-inc.com> | 2017-03-31 13:32:06 +0200 |
---|---|---|
committer | Harald Musum <musum@yahoo-inc.com> | 2017-03-31 13:32:06 +0200 |
commit | 955288be5fabcc374091d2a750111ba32a6c4a21 (patch) | |
tree | 75db189b73b49cc27b5cc33f717453a74b7b2c25 /zkfacade/src/main | |
parent | 08aad8ea0956de6fd4e3013d943af271ba31ff1d (diff) |
Catch exception in RemoteSession instead
Diffstat (limited to 'zkfacade/src/main')
-rw-r--r-- | zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorCompletionWaiter.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorCompletionWaiter.java b/zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorCompletionWaiter.java index 7d9cbf3f41c..c07de6a7b7a 100644 --- a/zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorCompletionWaiter.java +++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorCompletionWaiter.java @@ -75,18 +75,7 @@ class CuratorCompletionWaiter implements Curator.CompletionWaiter { } private void notifyInternal() throws Exception { - try { - curator.create().forPath(myId); - } catch (RuntimeException e) { - // Throw only if we get something else than NoNodeException -- NoNodeException might happen when - // an application have been deleted and this method has not been called yet for the previous deployment - // on a minority of the config servers (see awaitInternal() method in this class) - if (e.getCause().getClass() != KeeperException.NoNodeException.class) { - throw e; - } else { - log.log(LogLevel.INFO, "Not able to notify completion at path: " + myId +", node has been deleted"); - } - } + curator.create().forPath(myId); } @Override |