curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Osipov (JIRA)" <>
Subject [jira] [Created] (CURATOR-208) InterProcessSemaphoreV2 swallows InterruptedException
Date Fri, 10 Apr 2015 09:53:12 GMT
Alexei Osipov created CURATOR-208:

             Summary: InterProcessSemaphoreV2 swallows InterruptedException
                 Key: CURATOR-208
             Project: Apache Curator
          Issue Type: Bug
          Components: Recipes
    Affects Versions: 2.7.1, 2.6.0
            Reporter: Alexei Osipov

{{InterProcessSemaphoreV2}} incorrectly processes {{InterruptedException}}.

Method `InterProcessSemaphoreV2#makeLease(final String path)` contains code block
                catch ( KeeperException.NoNodeException e )
                    log.warn("Lease already released", e);
                catch ( Exception e )
                    throw new IOException(e);
The problem is that code in {{try}} block may throw an {{InterruptedException}} and this exception
gets wrapped into {{IOException}} so it becomes very problematic to handle it properly.

This message was sent by Atlassian JIRA

View raw message