Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 823B317787 for ; Wed, 26 Aug 2015 09:03:46 +0000 (UTC) Received: (qmail 966 invoked by uid 500); 26 Aug 2015 09:03:45 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 914 invoked by uid 500); 26 Aug 2015 09:03:45 -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 898 invoked by uid 99); 26 Aug 2015 09:03:45 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 09:03:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D6E61EE015 for ; Wed, 26 Aug 2015 09:03:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.474 X-Spam-Level: * X-Spam-Status: No, score=1.474 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=janestreet.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id slGssnt8TjZn for ; Wed, 26 Aug 2015 09:03:36 +0000 (UTC) Received: from mxout4.mail.janestreet.com (mxout4.mail.janestreet.com [38.105.200.233]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id CA77E20383 for ; Wed, 26 Aug 2015 09:03:35 +0000 (UTC) Received: from tot-qpr-mailcore2.delacy.com ([172.27.56.106] helo=tot-qpr-mailcore2) by mxout4.mail.janestreet.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from ) id 1ZUWcC-0002ZU-Sg for user@zookeeper.apache.org; Wed, 26 Aug 2015 05:03:28 -0400 X-JS-Flow: external Received: by tot-qpr-mailcore2 with JS-mailcore (0.1) (envelope-from ) id BV3YDd-AAAG6d-NQ; 2015-08-26 05:03:25.425163-04:00 Received: from mail-ig0-f174.google.com ([209.85.213.174]) by mxgoog1.mail.janestreet.com with esmtps (UNKNOWN:AES128-GCM-SHA256:128) (Exim 4.72) (envelope-from ) id 1ZUWc9-00041P-BX for user@zookeeper.apache.org; Wed, 26 Aug 2015 05:03:25 -0400 Received: by igfj19 with SMTP id j19so7020150igf.1 for ; Wed, 26 Aug 2015 02:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=w3MzZr+OFt8Xsc3sbX5Rl8SmkbVdXLAKQ/qaqfSIIpU=; b=BXUyZilyx71HZ7/Q4oDtoRYtXUYSJg2O8jhVQ1f72Lc+LTQsFdMvzLHHIWoqNKaANg QnhZNikuM/QwZe9Z7aCLjxR+5V5uvx9DFnzFNgGWpOOS/hNdKu2GEz7kGAQMKvKlKdX/ 8A1QMKQYnM6rNTrPYubVLriqmJRnCsva05UCQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=w3MzZr+OFt8Xsc3sbX5Rl8SmkbVdXLAKQ/qaqfSIIpU=; b=EVHbgDWDPYMMCSL6UsJl8OvgTqC3lQX8OxDGUDlwSpb4qklRrnMkj0BCjRpux2G/Eo rYtVH5vn0MJX7Td5AT5PoCzINzV7PJjZWDCCpwWplyzaLwZhGtmfjBFP4nK4rh1Rsfhv Z8S3sFkNP3Iej+ZHBN6WXRYeoUDy/2hXbAuRJw1aQLl1jr9Iswahk3yYaZOaX5JLtBho L8/hSOUc9bEXTkp8igNkMUMye8wWNWD07ZaulOhPtAQxy7vq+CVtnq5z9drbO+CnjQah jd7Chq4UUZju7FVenDDktiNnE0N8l9KTaouTR5fLqqWOHYh0u+T7AZ38mQrNXG3hH5Ta X8zg== X-Gm-Message-State: ALoCoQm4rznwLCiJ+GUPeBUETgb2frKylZRwdJmsrH8o9pmPaUf8MFEe+VJkUGy6ozy2pleLxYu0jcmRdgpzwmuER2c+9wCODzATA1mVwX/K1nOTZmEDHtUkAp0q+POShSn4AToHzSt+gHPD+hr05kJP8tXDTLJCKA== X-Received: by 10.50.78.161 with SMTP id c1mr9389789igx.35.1440579805023; Wed, 26 Aug 2015 02:03:25 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.78.161 with SMTP id c1mr9389760igx.35.1440579804812; Wed, 26 Aug 2015 02:03:24 -0700 (PDT) Received: by 10.107.140.14 with HTTP; Wed, 26 Aug 2015 02:03:24 -0700 (PDT) Date: Wed, 26 Aug 2015 10:03:24 +0100 Message-ID: Subject: Get_children after create From: Robert Rosolek To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=089e0111e07a89767a051e331fb6 X-JS-Processed-by: mailcore --089e0111e07a89767a051e331fb6 Content-Type: text/plain; charset=UTF-8 Hi, Sorry if this question was asked here before, but I couldn't find the search functionality in the archives. My question is the following: after create operation is successful, am I guaranteed to see the new child when doing get_children on the parent? I have a program, that seems to be breaking because it makes this assumption. Looking at the lock recipe at https://github.com/apache/zookeeper/blob/trunk/src/recipes/lock/src/java/org/apache/zookeeper/recipes/lock/WriteLock.java, it seems this code does *not* make this assumption and simply keeps retrying in a tight loop until it finds the child. Thank you, Robert --089e0111e07a89767a051e331fb6--