Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6A7B1098D for ; Mon, 31 Aug 2015 23:49:10 +0000 (UTC) Received: (qmail 15275 invoked by uid 500); 31 Aug 2015 23:49:10 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 15228 invoked by uid 500); 31 Aug 2015 23:49:10 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 15218 invoked by uid 99); 31 Aug 2015 23:49:10 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2015 23:49: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 2161F1AB2CE for ; Mon, 31 Aug 2015 23:49:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.98 X-Spam-Level: *** X-Spam-Status: No, score=3.98 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 29VhoIM67wsL for ; Mon, 31 Aug 2015 23:49:09 +0000 (UTC) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 0EDFB205E9 for ; Mon, 31 Aug 2015 23:49:09 +0000 (UTC) Received: by pabzx8 with SMTP id zx8so154649181pab.1 for ; Mon, 31 Aug 2015 16:49:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type; bh=FiWclfbiROZnIAAsHjeXo593XzmLHIQUIh7CwmZ7/L8=; b=kgAbvs5J7po5mqyA2uffLk2jDlBMiTGvjrKp6FtAhPKKTkBdZ8XI7uahOgbgEr+zYh 33hEYn2Piy2B4obTvf8OopQcNpp01P6+1baeHpV7QIDRmb+b7Wyg+IRNKcXnsGtMx+d/ dd6XWcajy2OblBgLWHJh7iKnDcXah2SPgPoDxlIzDRbV9SW/tjZFpmxQyRNH+DQiqtQb h5331W22a+TFFpDblK5J7aJb98+9ZiVqY0toBB2mub92JT3ptvEdaBbKH3lqNXDy0dua IaZn1AsiG8LX4PHVhC7qt5NpQpueSzYH8/tF1dTutXzdSngWW0oom+LskJDQETOR3rLi h1Aw== X-Gm-Message-State: ALoCoQmEfw0XMobElt0UALiTX9h4Ja2cgeNL1Gsp5P3OIsPUvVNeSLBd/LlA8/RcVz/ZUsA7GcVS X-Received: by 10.68.138.200 with SMTP id qs8mr42269623pbb.19.1441064948732; Mon, 31 Aug 2015 16:49:08 -0700 (PDT) Received: from jordans-mbp.bluejeansnet.com (BLUE-JEANS.bar1.SanFrancisco1.Level3.net. [4.15.75.6]) by smtp.gmail.com with ESMTPSA id kw3sm15812474pbc.30.2015.08.31.16.49.06 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Aug 2015 16:49:07 -0700 (PDT) Date: Mon, 31 Aug 2015 16:49:06 -0700 From: Jordan Zimmerman To: Cameron McKenzie , user@curator.apache.org Message-ID: In-Reply-To: References: Subject: Re: NodeExistsException with Shared Value recipe in Curator X-Mailer: Airmail (303) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="55e4e7f2_71b2235f_217" --55e4e7f2_71b2235f_217 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Why would this be needed=3F It adds an additional ZK call for no good rea= son. If the node exists, the exception is thrown. In any event, even if c= heckExists() succeeds there=E2=80=99s a chance that another process can c= reate the node before the create() call is made. So, it doesn=E2=80=99t d= o what you want anyway. -Jordan On August 31, 2015 at 2:46:09 PM, Cameron McKenzie (mckenzie.cam=40gmail.= com) wrote: Would it be possible in the future to have Curator have the option to run= a checkExists() before the .start() call on a recipe like Shared-Value=3F= Is the extra overhead not worth the trouble=3F --55e4e7f2_71b2235f_217 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline