Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@locus.apache.org Received: (qmail 85175 invoked from network); 7 Jan 2009 19:14:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2009 19:14:39 -0000 Received: (qmail 78671 invoked by uid 500); 7 Jan 2009 19:14:39 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 78654 invoked by uid 500); 7 Jan 2009 19:14:39 -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 78643 invoked by uid 99); 7 Jan 2009 19:14:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 11:14:39 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [69.147.107.20] (HELO mrout1-b.corp.re1.yahoo.com) (69.147.107.20) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 19:14:29 +0000 Received: from SNV-EXPF01.ds.corp.yahoo.com (snv-expf01.ds.corp.yahoo.com [207.126.227.250]) by mrout1-b.corp.re1.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id n07JCDcW034929 for ; Wed, 7 Jan 2009 11:12:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:user-agent:date:subject:from:to:message-id: thread-topic:thread-index:in-reply-to:mime-version:content-type: content-transfer-encoding:return-path:x-originalarrivaltime; b=wMz+X84Qf9Qr2ZeuJN4bjrVosUssNz8wtVlf3PRJIcmm817vM0XS0uBzTB5rtdJe Received: from SNV-EXVS09.ds.corp.yahoo.com ([207.126.227.86]) by SNV-EXPF01.ds.corp.yahoo.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Jan 2009 11:12:13 -0800 Received: from 10.73.146.106 ([10.73.146.106]) by SNV-EXVS09.ds.corp.yahoo.com ([207.126.227.84]) via Exchange Front-End Server snv-webmail.corp.yahoo.com ([207.126.227.60]) with Microsoft Exchange Server HTTP-DAV ; Wed, 7 Jan 2009 19:12:13 +0000 User-Agent: Microsoft-Entourage/12.15.0.081119 Date: Wed, 07 Jan 2009 11:12:12 -0800 Subject: Re: Simpler ZooKeeper event interface.... From: Mahadev Konar To: Message-ID: Thread-Topic: Simpler ZooKeeper event interface.... Thread-Index: Aclw+9gDh91huYvcekKMt5IWk41lUA== In-Reply-To: <4964F567.7030005@apache.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 07 Jan 2009 19:12:13.0463 (UTC) FILETIME=[D8E30A70:01C970FB] X-Virus-Checked: Checked by ClamAV on apache.org You are right Pat. Replaying an async operation would involve a lot of state management for clients across servers and would involve a lot more work in determining which operation succeeded and the one which needs to be re run and the semantics of zookeeper client calls would be much harder to guarantee. mahadev On 1/7/09 10:33 AM, "Patrick Hunt" wrote: > Kevin Burton wrote: >>> 3) it's possible for your code to get notified of a change, but never >>> process the change. This might happen if: >>> a) a node changed watch fires >>> b) your client code runs an async getData >>> c) you are disconnected from the server >>> >> >> Also, this seems very confusing... >> >> If I run an async request, the client should replay these if I'm reconnected >> to another host. > > (Ben/Flavio/Mahadev can correct me if I'm wrong here or missed some detail) > > Async operations are tricky as the server makes the change when it gets > the request, not when the client processes the response. So you could > request an async operation, which the server could process and respond > to the client, immed. after which the client is disconnected from the > server (before it can process the response). Client replay would not > work in this case, and given that async is typically used for high > throughput situations there could be a number of operations effected. > > Patrick