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 E13B5200B51 for ; Mon, 1 Aug 2016 18:02:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DFF59160A6C; Mon, 1 Aug 2016 16:02:34 +0000 (UTC) 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 0BAF8160A66 for ; Mon, 1 Aug 2016 18:02:33 +0200 (CEST) Received: (qmail 49456 invoked by uid 500); 1 Aug 2016 16:02:33 -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 49438 invoked by uid 99); 1 Aug 2016 16:02:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2016 16:02:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 687031A5F33 for ; Mon, 1 Aug 2016 16:02:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id T57d8txCI1Nb for ; Mon, 1 Aug 2016 16:02:28 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 659AC5F295 for ; Mon, 1 Aug 2016 16:02:28 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id p129so54342012wmp.0 for ; Mon, 01 Aug 2016 09:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=TI/pAaTdF2AHfO7BlYTckg+Tgo+ck3quuHQgNbKqi8Q=; b=d1Z3Qe0SPP6+GNlAS73RKmeyo25tEtLMoGqEXNXaXxBVK2sELjb2YbJzD/leHFwz33 nOF5am+HaxIgP8yDdJCXX2EQtQWLnE7/UUxwwkrhIpGqds8+Wxe+Kcw3C8h6Esroqj0W 0+NpwXCVt/rNSDixPp8Uvd2RgweMQQgdONlBMoa45jW1fvXqOvrjhpYx6hb8/hqF1pOS pJ4tlMIbcBhSnZSLFReYkQGuEKR2fFd6AdrenS0c59E1fNRO7g+rh2snPKJ+yrny8rLL I3jFfW/b7zrGzrv0NTZrz592XubwGALZs/RXC5Ui+wnaidyzkMtbjwBySyvGlvb43SS7 nguA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=TI/pAaTdF2AHfO7BlYTckg+Tgo+ck3quuHQgNbKqi8Q=; b=UbYxjMopGJItQMR6YKuc8DUJBOiZ3G+e00pernPrEU+s2N7dIA+w/ujGbkIlr7/mSm 7YXwcKMHFtHG1TfpyrYehUhTGes+uQBluRZjDOm/5tixe9uBMvCRwPVGvr3WFPg5lxTm oPdKFV82J6AXY0GjOWsHRuQUud53KQvLUnsK3ebMsT0TclaFA8BzSbw4o9ogHX21bBC8 ehj2CfSJCxRfCnbS9LKystcZWlNtJpTpqmTtYHRdhKAH3htphkVIscy9rjQdz14Wz2rf kIc6u1v/o4oWIrfjwePlRAzwgycVuPV3pT6eZxStG5Icz8jdlVVTx4b8tDeAn8Eaij5q RQ2A== X-Gm-Message-State: AEkoouuVouRJ3X+FNfzjwhLFr5E69gVsFSppQRu1frt5IK+F4g+WMa2llZHS3DUwLj7MSm0FMoogId5CcHcEwA== X-Received: by 10.194.58.112 with SMTP id p16mr52933779wjq.24.1470067340294; Mon, 01 Aug 2016 09:02:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.143.114 with HTTP; Mon, 1 Aug 2016 09:02:18 -0700 (PDT) In-Reply-To: <1258CA91-21B1-4753-840E-677D5EDD2C87@jordanzimmerman.com> References: <1258CA91-21B1-4753-840E-677D5EDD2C87@jordanzimmerman.com> From: =?UTF-8?Q?Stevo_Slavi=C4=87?= Date: Mon, 1 Aug 2016 18:02:18 +0200 Message-ID: Subject: Re: [jira] [Comment Edited] (ZOOKEEPER-2169) Enable creation of nodes with TTLs To: dev@zookeeper.apache.org Content-Type: multipart/alternative; boundary=047d7ba970769d4826053904b948 archived-at: Mon, 01 Aug 2016 16:02:35 -0000 --047d7ba970769d4826053904b948 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes, all server side. Client that successfully creates TTL node and registers such "trigger", could disconnect - trigger should fire on TTL node deletion and be handled on server side only. So server watching and handling event. It shouldn't happen that TTL node gets deleted and event does not get handled - both deletion of TTL node and handling of a trigger both should either succeed or fail. On Mon, Aug 1, 2016 at 5:37 PM, Jordan Zimmerman wrote: > That=E2=80=99s an interesting idea - so a watcher for container expiratio= ns? > > -Jordan > > > On Aug 1, 2016, at 2:20 AM, Stevo Slavi=C4=87 wrote= : > > > > Hello Apache ZooKeeper developers, > > > > Thinking, for a use case like support temporary topics in Apache Kafka, > > which could be based on ZooKeeper TTL feature, might be useful to be ab= le > > to register a ZooKeeper "trigger" once TTL expires for a node - e.g. in > > same transaction that deletes temporary node, create another persistent > > node (request to delete the topic). Of course one could workaround this= , > by > > creating persistent and TTL node, and check if there is persistent node > > without matching temporary node, but option with trigger would have bee= n > > better/easier from consistency point of view. > > > > What do you think about the idea? > > > > Kind regards, > > Stevo Slavic. > > > > > > On Mon, Aug 1, 2016 at 3:31 AM, Raul Gutierrez Segales (JIRA) < > > jira@apache.org> wrote: > > > >> > >> [ > >> > https://issues.apache.org/jira/browse/ZOOKEEPER-2169?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1540= 1429#comment-15401429 > >> ] > >> > >> Raul Gutierrez Segales edited comment on ZOOKEEPER-2169 at 8/1/16 1:31 > AM: > >> > -------------------------------------------------------------------------= -- > >> > >> [~fpj]: it's here: https://reviews.apache.org/r/46983/. > >> > >> cc: [~randgalt] > >> > >> > >> was (Author: rgs): > >> [~fpj]: it's here. > >> > >> cc: [~randgalt] > >> > >>> 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-2.patch, ZOOKEEPER-2169-3.patch, > >> ZOOKEEPER-2169-4.patch, ZOOKEEPER-2169-5.patch, 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 othe= r > >> "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 vi= a > a > >> refresh operation. > >>> The ZK quorum will watch this node similarly to the way that it watch= es > >> 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 bas= e > >> 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) > >> > > --047d7ba970769d4826053904b948--