Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 21554 invoked from network); 24 Feb 2010 20:54:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 20:54:35 -0000 Received: (qmail 31414 invoked by uid 500); 24 Feb 2010 20:54:35 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 31395 invoked by uid 500); 24 Feb 2010 20:54:35 -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 31384 invoked by uid 99); 24 Feb 2010 20:54:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 20:54:35 +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 (nike.apache.org: domain of ted.dunning@gmail.com designates 74.125.83.176 as permitted sender) Received: from [74.125.83.176] (HELO mail-pv0-f176.google.com) (74.125.83.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 20:54:27 +0000 Received: by pvd12 with SMTP id 12so893753pvd.35 for ; Wed, 24 Feb 2010 12:54:06 -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=W7YJ5q8j+NOBiCcMyA8zMVf0M80Nz6joj6BiPK92bsA=; b=bZ9aO0sIQnS2Met7JE21xvalFMn1U3eNTz+8cCzs1dIa3MF7lbBt2RsgaYg/kPjanL E5FGWvusJ6NGF0ixMbRieh/Y+bA6tR+4yWdKiySekKOcbFw1CsGa7+HIkj2gvq1yUX68 hTtuSOAPhP6By+DS4EdI/+dZOaM5N4/mibqug= 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=StOxIjPdFkW4DXsQkEWMuTVCPFfNt+H0YiFJBu3SEvDeTIxJx/reMl2x7pKGgGaUyH AePyvCWlsITA/sUgc30Uc9y5YFx9o00PdocCFhGbnYf/iiw16WUWOzubyaUbM/CiDQ1M LsziHR06cPG2t4I0AR+x0ZyEPUBgtv8CtEyNw= MIME-Version: 1.0 Received: by 10.141.4.4 with SMTP id g4mr177688rvi.275.1267044846250; Wed, 24 Feb 2010 12:54:06 -0800 (PST) In-Reply-To: <8bc75ecf1002241118h3070c66dle190a4ff7474369b@mail.gmail.com> References: <8bc75ecf1002230405u4f28a5f4q4a25348b35af3671@mail.gmail.com> <8bc75ecf1002232109h7132adfdr8b27c92b34fb179a@mail.gmail.com> <8bc75ecf1002240325o5a7e2c9al18a6e86877088575@mail.gmail.com> <4B855983.1070305@apache.org> <8bc75ecf1002241118h3070c66dle190a4ff7474369b@mail.gmail.com> From: Ted Dunning Date: Wed, 24 Feb 2010 12:53:46 -0800 Message-ID: Subject: Re: how to lock one-of-many ? To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=000e0cd11326f9aa6804805eddf2 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd11326f9aa6804805eddf2 Content-Type: text/plain; charset=UTF-8 I was thinking of adding it on the client. You can sub-class the client connection and add any desired additional behaviors such as delays. I am fond of mocking the client connection as well in order to simulate severe malfunctions or failure scenarios. On Wed, Feb 24, 2010 at 11:18 AM, Martin Waite wrote: > I really do not follow the delegator approach. Is this something I would > patch into Zookeeper ? Or the client ? > -- Ted Dunning, CTO DeepDyve --000e0cd11326f9aa6804805eddf2--