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

PersistentTtlNode can leave dangling containers behind

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Do
    • 4.2.0
    • None
    • Recipes
    • None

    Description

      PersistentTtlNode creates a container as a PersistentNode and then adds a TTL node in it named touch that is refreshed periodically.

      We encountered an issue were the application crashed (or was disconnected from ZooKeeper) between the creation of the container and the creation of the touch child.

      ZooKeeper doesn't delete containers that never had any children. So this result in this container node to stay around forever and never expire.

      A fix for that is to create both container and touch child as part of a single transaction.

      Since PersistentTtlNode delegates to PersistentNode this may require quite some refactoring of the recipe. But I actually don't understand why the container has to be a PersistentNode and is not a regular container.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sylvain@apache.org Sylvain Wallez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: