You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Mike Drob (JIRA)" <ji...@apache.org> on 2014/08/01 19:07:38 UTC

[jira] [Commented] (CURATOR-71) Error message in StandardLockInternalsDriver for retryable lock acquire error

    [ https://issues.apache.org/jira/browse/CURATOR-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14082512#comment-14082512 ] 

Mike Drob commented on CURATOR-71:
----------------------------------

We can expand the scope of this issue to remove all of the instances of log-and-throw. Some rationale is available at https://today.java.net/article/2006/04/04/exception-handling-antipatterns#logAndThrow

> Error message in StandardLockInternalsDriver for retryable lock acquire error
> -----------------------------------------------------------------------------
>
>                 Key: CURATOR-71
>                 URL: https://issues.apache.org/jira/browse/CURATOR-71
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Recipes
>    Affects Versions: 2.1.0-incubating
>            Reporter: Vegard B. Havdal
>
> We occasionally get the error message "Sequential path not found..." from StandardLockInternalDriver, but the subsequent NoNode exception is caught and treated as normal in some cases in LockInternals. Ie. bogus error message in our log.
> Consider removing the error log msg from StandardLockInternalDriver, not log and throw.



--
This message was sent by Atlassian JIRA
(v6.2#6252)