Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 37DA9200AE3 for ; Wed, 4 May 2016 08:37:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 366C31609F7; Wed, 4 May 2016 08:37:15 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 832181609F8 for ; Wed, 4 May 2016 08:37:14 +0200 (CEST) Received: (qmail 31493 invoked by uid 500); 4 May 2016 06:37:13 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 31198 invoked by uid 99); 4 May 2016 06:37:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2016 06:37:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3DAA72C1F7E for ; Wed, 4 May 2016 06:37:13 +0000 (UTC) Date: Wed, 4 May 2016 06:37:13 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2169) Enable creation of nodes with TTLs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 May 2016 06:37:15 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15270192#comment-15270192 ] Jordan Zimmerman commented on ZOOKEEPER-2169: --------------------------------------------- Also, docs are needed, etc. etc. probably other stuff. > Enable creation of nodes with TTLs > ---------------------------------- > > Key: ZOOKEEPER-2169 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2169 > Project: ZooKeeper > Issue Type: New Feature > Components: c client, java client, jute, server > Affects Versions: 3.6.0 > Reporter: Camille Fournier > Assignee: Jordan Zimmerman > Fix For: 3.6.0 > > Attachments: ZOOKEEPER-2169.patch > > > 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? -- This message was sent by Atlassian JIRA (v6.3.4#6332)