Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-508

LeaderLatch#setNode might throws unexpected NoNodeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • Recipes
    • None

    Description

      private void setNode(String newValue) throws Exception
      {
       String oldPath = ourPath.getAndSet(newValue);
       if ( oldPath != null )
       {
       client.delete().guaranteed().inBackground().forPath(oldPath);
       }
      }

      What if the election node deleted for some reason, e.g., the session disconnected and reconnected? Should we use #quietly() here?

      Attachments

        Activity

          People

            tison Zili Chen
            tison Zili Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: