curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan Zimmerman (JIRA)" <>
Subject [jira] [Closed] (CURATOR-195) LeaderSelector swallows exceptions
Date Sun, 08 May 2016 19:46:12 GMT


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:
>             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:
> 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

View raw message