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 26094200D01 for ; Fri, 22 Sep 2017 20:54:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24ACA1609D0; Fri, 22 Sep 2017 18:54:13 +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 716211609BE for ; Fri, 22 Sep 2017 20:54:12 +0200 (CEST) Received: (qmail 85379 invoked by uid 500); 22 Sep 2017 18:54:11 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 85364 invoked by uid 99); 22 Sep 2017 18:54:10 -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; Fri, 22 Sep 2017 18:54:10 +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 551C21A6CE4 for ; Fri, 22 Sep 2017 18:54:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.48 X-Spam-Level: X-Spam-Status: No, score=0.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=mesosphere-com.20150623.gappssmtp.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 2pc1IaoREejt for ; Fri, 22 Sep 2017 18:54:09 +0000 (UTC) Received: from mail-ua0-f197.google.com (mail-ua0-f197.google.com [209.85.217.197]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8715461260 for ; Fri, 22 Sep 2017 18:54:09 +0000 (UTC) Received: by mail-ua0-f197.google.com with SMTP id l24so1534053uaa.2 for ; Fri, 22 Sep 2017 11:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mesosphere-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=6Nvs4NMCFI8XEYHA6VIN76ASyb2mrnVqc5ZfIfvQkqI=; b=MK7R3B+pWddzmHXhyBj75mqO2kx3QAHgxW4/wi+nU5FeewzjK+AMzuauNiKSiUrR5q d0lW5+azgbBXxFYspTnF/oze7k4BnxT6kzgME5pe4qHLkalnvoBVNvpQBzvsKfDl+75R MBraua/ct4CnnwJjlqVy9U4ByvSbz7ThjMm6FTkDYCaCMhDKL4dyZ6EmXBNj6ykxrn/m sMDiYi8fYD0iOMnur8CJJzi/xJAHy/dFOhCO7W4rBSAaOYNzTWMlY97DnKSJgpJi1To6 UxsHw3I9dnGZBkR84QJw910RROg1b0E1EQXtc6U4zvPxHd3hvhVQBVG/T6YIlFgHQXq+ KNuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=6Nvs4NMCFI8XEYHA6VIN76ASyb2mrnVqc5ZfIfvQkqI=; b=OLNCVoLIX6UV22Ubkpf4RWTm6dDCJmwcj5moUbyBVFzRxT08pWQ0+dpTcpxZayUfh0 4rHbNh1edRWMoU3Vuke7DoBGFATmsmLvt1YIDsADHDkks8G5tn5MqSVkXCNXBolZax2s GxFuIXbmHdvbIsISZM8F0h/ymde4HZ/x+Me22W4A8SpJ9SmiVrwtBZKWOlHILN12T1UN 0KNBp0BIKFuggtV2V8RKR1NGtws0GmO1v24fmIntR8VZ3LeAE2jmKWwZTdgYZ7fxbIuJ XoqOx2bIJuV+rWViHOfwgV4h6X16sN89nhuoFa6tSmWx9DQ2BpZ0I6FhWdSaW2KCwAgg ck/g== X-Gm-Message-State: AHPjjUjUNSIAH0K5FLpMFMwh6l9/BG5WQc3Y2J/2TcfyCP4vS80O2h40 4joL9RhF77JS1KIHXmIYQ5WaaC2/t55p6p9BJfFnPg== X-Google-Smtp-Source: AOwi7QCnnV+j7/pQR3vtNwTffa2iQARsY+JoyJfAgNLRoM9AKZ+yhQdcoDOqeiEB7u5mA9ncHsvq9wHmslzyT39EyPw= X-Received: by 10.31.94.204 with SMTP id s195mr134557vkb.38.1506106448790; Fri, 22 Sep 2017 11:54:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.125.1 with HTTP; Fri, 22 Sep 2017 11:54:08 -0700 (PDT) In-Reply-To: References: From: Ivan Chernetsky Date: Fri, 22 Sep 2017 11:54:08 -0700 Message-ID: Subject: Re: Is sync effectively recursive? To: user@zookeeper.apache.org Content-Type: text/plain; charset="UTF-8" archived-at: Fri, 22 Sep 2017 18:54:13 -0000 Hi Ivan, Thanks a lot for getting back to me so quickly. > > Then the client A shuts down, and the client B comes up. If the client B > > does a sync on /, is it safe to assume that reading /parent, or > > /parent/childA or any other node is safe meaning that the client B will see > > all the most recent updates made by the client A? > Yes, sync flushes the channels between the connected server and the > leader, so once you call sync, any further requests will see at least > the true state of the cluster at the time the sync was called. I dunno > why it takes a path, since zk has only one log. This is what I assumed, and it absolutely makes sense. Though I was not sure whether all the in-memory data structures get updated for _all_ ZK nodes on a log sync. Just wanted to double-check. Thanks again. Regards, Ivan.