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 E88336D4D for ; Wed, 1 Jun 2011 23:30:34 +0000 (UTC) Received: (qmail 1627 invoked by uid 500); 1 Jun 2011 23:30:34 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 1604 invoked by uid 500); 1 Jun 2011 23:30:34 -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 1595 invoked by uid 99); 1 Jun 2011 23:30:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 23:30:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.dunning@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vx0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 23:30:28 +0000 Received: by vxb40 with SMTP id 40so323287vxb.15 for ; Wed, 01 Jun 2011 16:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=V+iO3eQV5U1YD2hX/vgTMB7HdKHoMjiNZbkEgDdFfgk=; b=onWB4/Rkdil8JxRYFtE8cRBJl3Fr5i1KnljNzHajK5pUDNxWnfjlbxBlNM9ruerHeC PGBe3lCB0FFpLZOfpLrgVYvPzuwDu8nOu8xProV5rJ4iUCHivowXWCI6K3qSXk7v5NOl pLUqHMaPL4M13y7aY5fhG6hvmirByUPE1opAM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=OF11AS714qAx8hatOkudHy6+Djr5FXUXhJnD6lN2C/t4RF37D3gr85KF4EqCePFvk+ 9/Udh/JbFpSqIK8dtmRo9hiXIBTiUQLIhVcl2GakFAlOzrlxBUn5YfA+K6H6Q8ThZ5i3 cRI46MhCUISVTUMsESpXVvRl0mIzibw+0PkZY= Received: by 10.52.113.136 with SMTP id iy8mr61540vdb.284.1306971000119; Wed, 01 Jun 2011 16:30:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.110.101 with HTTP; Wed, 1 Jun 2011 16:29:40 -0700 (PDT) In-Reply-To: References: From: Ted Dunning Date: Wed, 1 Jun 2011 16:29:40 -0700 Message-ID: Subject: Re: lost ZK events across datacenters To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=bcaec547ca8b31a17b04a4aee6ad --bcaec547ca8b31a17b04a4aee6ad Content-Type: text/plain; charset=UTF-8 True. On Wed, Jun 1, 2011 at 4:28 PM, Camille Fournier wrote: > I'm sure there are cases where an incorrect retry is bad, but for at least > some use cases it is a trivial aspect of correctness and a worthwhile > tradeoff in terms of app simplicity. > > C > On Jun 1, 2011 7:22 PM, "Ted Dunning" wrote: > > That is exactly the part of zkClient that I think is most subject to > error > > and is what I meant by inappropriate hiding of details. > > > > You can't just assume that you can retry an operation on Zookeeper and > get > > the right result. The correct handling is considerably more subtle. > Hiding > > that is not a good thing unless you say right up front that you are > > compromising either expressivity (as does Kept Collections) or > correctness > > (as does zkClient). > > > > On Wed, Jun 1, 2011 at 2:05 PM, Jun Rao wrote: > > > >> The most important feature that I rely zkclient on is to hide > >> zkConnectionLoss exception (just block and retry when connection is in > sync > >> mode again). I assume that quite a few applications want something like > >> that. Does it make sense for ZK to provide such functionality directly, > >> instead of everyone implementing their own stuff? > >> > --bcaec547ca8b31a17b04a4aee6ad--