[ 
https://issues.apache.org/jira/browse/CURATOR-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zili Chen reassigned CURATOR-41:
--------------------------------

    Assignee: Kezhu Wang

> Curator masks/loses exception in LockInternals
> ----------------------------------------------
>
>                 Key: CURATOR-41
>                 URL: https://issues.apache.org/jira/browse/CURATOR-41
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Recipes
>            Reporter: Shevek
>            Assignee: Kezhu Wang
>            Priority: Major
>             Fix For: 5.6.0
>
>
>     private boolean internalLockLoop(long startMillis, Long millisToWait, 
> String ourPath) throws Exception
>         try {
>         ...
>         }
>         catch ( Exception e )
>         {
>             doDelete = true;
>             throw e;
>         }
>         finally
>         {
>             if ( doDelete )
>             {
>                 deleteOurPath(ourPath);
>             }
>         }
> Say ... throws an exception. catch sets doDelete = true. Then deleteOurPath 
> throws an exception. We never find out what the original exception was that 
> caused the mutex to fail.
> In JDK8, I think we get the extra Throwable#getSuppressed() call, which will 
> return us this extra exception, but we aren't on JDK8 yet.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to