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

PathChildrenCache missing events upon reconnection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0, 2.13.0
    • Recipes
    • None

    Description

      PathChildrenCache attempts to check for any change that occurred during a connection loss in applyNewData():

      PathChildrenCache.java
          else if ( previousData.getStat().getVersion() != stat.getVersion() )
      

      The way to compare stats is erroneous. version will be reset if the node is recreated. So the above code only works if an update has been made, but it may miss changes that involve a delete event.

      Example:

      • node /tmp is just created, version=0
      • connection loss
      • node /tmp is deleted
      • node /tmp is recreated with new data, version=0
      • reconnect
      • no data change event from PathChildrenCache

      Attachments

        Issue Links

          Activity

            People

              randgalt Jordan Zimmerman
              benjamin.jaton Benjamin Jaton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: