From notifications-return-2206-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Wed Oct 9 16:36:27 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5E057180645 for ; Wed, 9 Oct 2019 18:36:27 +0200 (CEST) Received: (qmail 4300 invoked by uid 500); 9 Oct 2019 16:36:26 -0000 Mailing-List: contact notifications-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 notifications@zookeeper.apache.org Received: (qmail 4291 invoked by uid 99); 9 Oct 2019 16:36:26 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Oct 2019 16:36:26 +0000 From: GitBox To: notifications@zookeeper.apache.org Subject: [GitHub] [zookeeper] swallez commented on issue #1091: ZOOKEEPER-3546: Delete empty containers with cversion == 0 after a grace period Message-ID: <157063898670.17492.12314335942329145572.gitbox@gitbox.apache.org> Date: Wed, 09 Oct 2019 16:36:26 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit swallez commented on issue #1091: ZOOKEEPER-3546: Delete empty containers with cversion == 0 after a grace period URL: https://github.com/apache/zookeeper/pull/1091#issuecomment-540083089 @TisonKun `PersistentTtlNode` creates a container as a `PersistentNode` and then adds a TTL node in it named `touch` that is refreshed periodically. This means the application can use the parent as a regular node and won't be polluted by watch event triggered by the periodic refresh required by the TTL. The problem in Curator is that those two nodes (container and `touch` child) are created separately. So if there's a crash between these two requests and `touch` is never created, the parent container stays forever. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services