diff options
Diffstat (limited to 'zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorWrapper.java')
-rw-r--r-- | zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorWrapper.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorWrapper.java b/zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorWrapper.java index 27d969c0c09..273c0be044b 100644 --- a/zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorWrapper.java +++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/CuratorWrapper.java @@ -110,7 +110,7 @@ public class CuratorWrapper extends AbstractComponent implements VespaCurator { @Override public void register(SingletonWorker singleton, Duration timeout) { try { - await(singletons.register(singleton.id(), singleton), timeout, "register " + singleton); + await(singletons.register(singleton.id(), singleton), timeout, "registering " + singleton); } catch (RuntimeException e) { try { @@ -125,7 +125,7 @@ public class CuratorWrapper extends AbstractComponent implements VespaCurator { @Override public void unregister(SingletonWorker singleton, Duration timeout) { - await(singletons.unregister(singleton), timeout, "unregister " + singleton); + await(singletons.unregister(singleton), timeout, "unregistering " + singleton); } private void await(Future<?> future, Duration timeout, String action) { @@ -141,7 +141,7 @@ public class CuratorWrapper extends AbstractComponent implements VespaCurator { throw new UncheckedTimeoutException("timed out while " + action, e); } catch (ExecutionException e) { - throw new RuntimeException("failed to " + action, e.getCause()); + throw new RuntimeException("failed " + action, e.getCause()); } } |