Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2169

Enable creation of nodes with TTLs

    XMLWordPrintableJSON

Details

    Description

      As a user, I would like to be able to create a node that is NOT tied to a session but that WILL expire automatically if action is not taken by some client within a time window.

      I propose this to enable clients interacting with ZK via http or other "thin clients" to create ephemeral-like nodes.

      Some ideas for the design, up for discussion:

      The node should support all normal ZK node operations including ACLs, sequential key generation, etc, however, it should not support the ephemeral flag. The node will be created with a TTL that is updated via a refresh operation.

      The ZK quorum will watch this node similarly to the way that it watches for session liveness; if the node is not refreshed within the TTL, it will expire.

      QUESTIONS:

      1) Should we let the refresh operation set the TTL to a different base value?
      2) If so, should the setting of the TTL to a new base value cause a watch to fire?
      3) Do we want to allow these nodes to have children or prevent this similar to ephemeral nodes?

      Attachments

        1. ZOOKEEPER-2169.patch
          34 kB
          Jordan Zimmerman
        2. ZOOKEEPER-2169-2.patch
          43 kB
          Jordan Zimmerman
        3. ZOOKEEPER-2169-3.patch
          43 kB
          Jordan Zimmerman
        4. ZOOKEEPER-2169-4.patch
          59 kB
          Jordan Zimmerman
        5. ZOOKEEPER-2169-5.patch
          59 kB
          Jordan Zimmerman
        6. ZOOKEEPER-2169-6.patch
          64 kB
          Camille Fournier
        7. ZOOKEEPER-2169-7.patch
          64 kB
          Jordan Zimmerman
        8. ZOOKEEPER-2169-8.patch
          64 kB
          Jordan Zimmerman
        9. ZOOKEEPER-2169-9.patch
          6 kB
          Jordan Zimmerman

        Issue Links

          Activity

            People

              randgalt Jordan Zimmerman
              fournc Camille Fournier
              Votes:
              8 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h