[
https://issues.apache.org/jira/browse/CURATOR-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jordan Zimmerman closed CURATOR-195.
------------------------------------
Resolution: Fixed
Looks like this was merge a while ago but never closed.
> LeaderSelector swallows exceptions
> ----------------------------------
>
> Key: CURATOR-195
> URL: https://issues.apache.org/jira/browse/CURATOR-195
> Project: Apache Curator
> Issue Type: Bug
> Affects Versions: 2.7.0
> Reporter: Henrik Nordvik
> Assignee: Jordan Zimmerman
>
> Because CURATOR-71 was a bit agressive in deleting code, LeaderSelector will
> now swallow all exceptions from mutex.acquire();
> {code}
> log.error("mutex.acquire() threw an exception", e);
> {code}
> The line was removed here:
> https://github.com/apache/curator/pull/31/files
> Which means that the exception is now bubbling up to the Callable submitted
> to the executorservice. If you throw an exception inside the Callable it will
> be caught by FutureTask and set on the Future, and LeaderSelector never
> accesses the result of the future, so it is ignored.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)