curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Nordvik (JIRA)" <>
Subject [jira] [Created] (CURATOR-195) LeaderSelector swallows exceptions
Date Mon, 30 Mar 2015 12:52:52 GMT
Henrik Nordvik created CURATOR-195:

             Summary: LeaderSelector swallows exceptions
                 Key: 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();

log.error("mutex.acquire() threw an exception", e);

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