curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Nordvik (JIRA)" <j...@apache.org>
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
                 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)

Mime
View raw message