Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 14744 invoked from network); 25 Feb 2010 19:12:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2010 19:12:03 -0000 Received: (qmail 22350 invoked by uid 500); 25 Feb 2010 19:12:03 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 22331 invoked by uid 500); 25 Feb 2010 19:12:03 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 22323 invoked by uid 99); 25 Feb 2010 19:12:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 19:12:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.dunning@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pw0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 19:11:56 +0000 Received: by pwi6 with SMTP id 6so5385396pwi.35 for ; Thu, 25 Feb 2010 11:11:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=hy0QhV4m2JdkAV3iyh468+DvLfJ8N8joxg29DZPsX9M=; b=Ndnvaac0vGaBH0mnwn4Cc2zVR5Ls5pdjo8q45kdFWZ+QC+jfemt6pAoWt2TEoBUq+H l4gpP+5p1Vs9rfQiplwcf8q469SDQtr8MkPtqQ81EgWeo3ddRtu6hbwh7dnMBYLrscdm XPWUQdUBLDySVYRJPWWfyxXlUqVBWBEIBcGGw= 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=A8EJbmEqPf4wEs847lPzYq/oBBtztj21m6zkyXOkLJWrJBIgld8QblqHv+yQ9g16I2 wuSQ6KbazKwEmWkAIdSjxGrZJh5zKxLXUPB+1QjmTmk1Q8QXF8ebAhqVgbGB2FW/X3cH N+H3NG4XHtuFh+9kezTG119OpU/Z8QcWD3vUg= MIME-Version: 1.0 Received: by 10.140.83.14 with SMTP id g14mr18648rvb.30.1267125096199; Thu, 25 Feb 2010 11:11:36 -0800 (PST) In-Reply-To: <8bc75ecf1002250250m2bd0ece1ic7d0eca679339cc4@mail.gmail.com> References: <8bc75ecf1002240340r55dc6bd2v5579f89105045506@mail.gmail.com> <8bc75ecf1002241110q3ab10226v5c0a6d7e7b447cee@mail.gmail.com> <8bc75ecf1002250007l7f21137fm65c16bb33b649e8@mail.gmail.com> <8bc75ecf1002250250m2bd0ece1ic7d0eca679339cc4@mail.gmail.com> From: Ted Dunning Date: Thu, 25 Feb 2010 11:11:16 -0800 Message-ID: Subject: Re: is there a good pattern for leases ? To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=000e0cd23d7e3eb52d0480718dad --000e0cd23d7e3eb52d0480718dad Content-Type: text/plain; charset=UTF-8 Not really. You have ordering guarantees and you can avoid the whole mess by using the version numbers when you update the file. See my other email. On Thu, Feb 25, 2010 at 2:50 AM, Martin Waite wrote: > But to do this, would I need to call sync between steps 2 and 3 to ensure > the node "FN" was up-to-date - assuming I do not know if I am connected to > a > primary ZK instance ? Would 10K sync calls within a 2 minute period be > excessive ? > -- Ted Dunning, CTO DeepDyve --000e0cd23d7e3eb52d0480718dad--