From user-return-12066-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu Aug 15 00:44:19 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 69CE61802C7 for ; Thu, 15 Aug 2019 02:44:19 +0200 (CEST) Received: (qmail 63951 invoked by uid 500); 15 Aug 2019 00:44:18 -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 63934 invoked by uid 99); 15 Aug 2019 00:44:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Aug 2019 00:44:17 +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 70DF4C1271 for ; Thu, 15 Aug 2019 00:44:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.051 X-Spam-Level: ** X-Spam-Status: No, score=2.051 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id BhxNungaTXGb for ; Thu, 15 Aug 2019 00:44:15 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.170; helo=mail-pf1-f170.google.com; envelope-from=wander4096@gmail.com; receiver= Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id D548FBC7B3 for ; Thu, 15 Aug 2019 00:44:14 +0000 (UTC) Received: by mail-pf1-f170.google.com with SMTP id f17so402874pfn.6 for ; Wed, 14 Aug 2019 17:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=vsaaY9vYLMHcsLzu/K+p5m4IFBOgpTtibKGf4XSRrYg=; b=HHg24mSGAb+d48DhbhEbcEHHWXN4rTMXL+MgxrlMcxQdZcJLtF9RYJh5exI6JFq/nS lmpkZ8BTT0UJpXwpMHZBSrD9cu5OAEi8mLwkSl2ggELq4oiTEwqiIlV/Fkm67m+R5nWc rUlfzXqEgvk79VX8YcYLpMrEWzLNNfvuhOcF1jfg4srJ6zbugR38VtXVKoTOBOxeSd9E WHovN8RNO+GF9a4DTHqcp+MiDMBw9zsxTCVygvcMtc84NWd3kxBtLxwfnHe2Km9cuYgO Y+D4aYXtX2KyNHoU4LIiiFPvN85y1fp5Jt8XhD7pbsqzYZZLi9vH6LE3aIodUQ2MCmbL N3JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=vsaaY9vYLMHcsLzu/K+p5m4IFBOgpTtibKGf4XSRrYg=; b=BHSY/hFlMzfcQkf8EYiw0j1EhAFg1eBXBoEbrRbSCjKbd0ZOsvmzfsH8RgqU6c6tdD +BfQ1aIahnG56oZADv5Ld9ntN1r1VczrIqpDWQxlSQKZ45U9PczaVNrYs/8veuGaB9G8 y1H5c+a2am13cSiibWx7ElyfWYYUzjpVnOOe4bHm0ZmnhDfMtseL+I6FSrE8vpyFZ3r8 XVT6dLVicgbpTv2vv7ULMpPI0ubD2dJU5VOzyN37OGWxJd18lwscjXVF7SItvopebb0N lbg6FfarSaLTLTdH1OJnzgiz4Kx3Gp5i4ksfJLrp7gar2FsOMzbHqSgfdI+RQ1eGalwe 4GGA== X-Gm-Message-State: APjAAAX4X2s1jr9ow6+5k+khU2UGlttxJVKRt3g6UgNL1UhTiOo14AcK tuJaoBRP/4oUpK/E+YE1hR+5udDfkeVTzuSnxJkD6uBVLWUUHQ== X-Google-Smtp-Source: APXvYqz0CqJaQENzjbcaA1CQzSiun1YyWZjHsKSGuVsT09ueXVppW17WIuK2XZl1xNzrrc6gZ9XmOKkIJ4moZm4OP+U= X-Received: by 2002:aa7:8dd2:: with SMTP id j18mr2768681pfr.88.1565829853949; Wed, 14 Aug 2019 17:44:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zili Chen Date: Thu, 15 Aug 2019 08:43:49 +0800 Message-ID: Subject: Re: create or setData in transaction? To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="00000000000039326405901d2ca9" --00000000000039326405901d2ca9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jordan, Thanks for your reply. The problem is that we cannot confirm an action is committed atomically with checking the leadership. The thread shows that we are unable to access the latch znode. There is another thread[1] in Curator list and we could continue the discussion there. Best, tison. [1] https://www.mail-archive.com/user@curator.apache.org/msg01238.html Jordan Zimmerman =E4=BA=8E2019=E5=B9=B48=E6=9C= =8815=E6=97=A5=E5=91=A8=E5=9B=9B =E4=B8=8A=E5=8D=888:23=E5=86=99=E9=81=93= =EF=BC=9A > FYI - that "wart" had a workaround. You can't use the same workaround? > > -Jordan > > > On Aug 14, 2019, at 5:19 PM, Zili Chen wrote: > > > > Actually I want something like LeaderLatch of Curator but the > > implementation in Curator has some wart[1] > > --00000000000039326405901d2ca9--