You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Jordan Zimmerman (JIRA)" <ji...@apache.org> on 2019/02/21 16:22:00 UTC
[jira] [Reopened] (CURATOR-508) LeaderLatch#setNode might throws
unexpected NoNodeException
[ https://issues.apache.org/jira/browse/CURATOR-508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordan Zimmerman reopened CURATOR-508:
--------------------------------------
Actually, I think I misread this initially. I apologize. I'll look into it when I get a chance.
> LeaderLatch#setNode might throws unexpected NoNodeException
> -----------------------------------------------------------
>
> Key: CURATOR-508
> URL: https://issues.apache.org/jira/browse/CURATOR-508
> Project: Apache Curator
> Issue Type: Bug
> Components: Recipes
> Reporter: TisonKun
> Priority: Major
>
> {code:java}
> private void setNode(String newValue) throws Exception
> {
> String oldPath = ourPath.getAndSet(newValue);
> if ( oldPath != null )
> {
> client.delete().guaranteed().inBackground().forPath(oldPath);
> }
> }{code}
> What if the election node deleted for some reason, e.g., the session disconnected and reconnected? Should we use {{#quietly()}} here?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)