Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@locus.apache.org Received: (qmail 52621 invoked from network); 7 Jan 2009 15:03:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2009 15:03:42 -0000 Received: (qmail 24834 invoked by uid 500); 7 Jan 2009 15:03:41 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 24815 invoked by uid 500); 7 Jan 2009 15:03:41 -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 24804 invoked by uid 99); 7 Jan 2009 15:03:41 -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 07:03:41 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chirino@gmail.com designates 209.85.128.187 as permitted sender) Received: from [209.85.128.187] (HELO fk-out-0910.google.com) (209.85.128.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 15:03:32 +0000 Received: by fk-out-0910.google.com with SMTP id 26so4346970fkx.13 for ; Wed, 07 Jan 2009 07:03:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=iO8SROpD+XRydDHWwuPUo/RbaBUeKlye+bDe3LAfEJg=; b=mxLCFY+DH+sOFCiwLdJK/g/iBnzs/jGfMLsFGXtVKyze1KS+ciaHToCbcsePo0N40P fGMIcqHJA0jmdgt6WlWhUrIF6KLyVQADsy8Au4cCpQzihtRnHxFsO8Uj6sjNXgKGCntc cRdj0P3K/xagBWwB2K1ydY4btvxXcnJB5hYuQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iMEVdQCki5BEY8m9RmDI6tewEp+47OsUaA1/tf736lW8QR5amK6m0nHmbqbukWDwTe xc3xxxk5b9lcbOVC5aLZJQvB28SGt1OA0TWcv3Rcp/Nf3wlnhS5N0/Q30b1S1Hs9A8tT qpgSM1m8GjD8yV4NTwkjboFQ/i/UeaVw8EHjw= Received: by 10.223.113.136 with SMTP id a8mr16524291faq.76.1231340591194; Wed, 07 Jan 2009 07:03:11 -0800 (PST) Received: by 10.223.103.202 with HTTP; Wed, 7 Jan 2009 07:03:11 -0800 (PST) Message-ID: Date: Wed, 7 Jan 2009 10:03:11 -0500 From: "Hiram Chirino" To: zookeeper-user@hadoop.apache.org Subject: Re: Simpler ZooKeeper event interface.... In-Reply-To: <30c6373b0901062058x280d32a3j9883bf044829af35@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <30c6373b0901061657y61d329e4m73745c4f3a18ef8a@mail.gmail.com> <30c6373b0901062058x280d32a3j9883bf044829af35@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Knowing about a disconnection may be important to some apps. For example if an app uses ZK for leader election, and the leader gets disconnected from ZK, he should give up being the leader, since a different leader may get elected while he is disconnected from ZK. On Tue, Jan 6, 2009 at 11:58 PM, Kevin Burton wrote: > 3.0.1..... > my watches get recreated on the new server but I'm still too aware of > connections. > > In fact, shouldn't disconnect be removed entirely? Or is this just advice > telling the client that something bad might have happened? > > Kevin > > On Tue, Jan 6, 2009 at 7:12 PM, Mahadev Konar wrote: > >> http://issues.apache.org/jira/browse/ZOOKEEPER-23 >> >> This has been fixed in zookeeper-3.0 release. Are you using a release from >> sourceforge? >> >> >> mahadev >> >> >> On 1/6/09 4:57 PM, "Kevin Burton" wrote: >> >> > This could be simplified if the semantics for reconnect were simplified. >> > Is there any reason why I should know about a disconnect if ZK is just >> going >> > to reconnect me to another server in 1ms? >> > >> > Why not hide *all* of this form the user and have the client re-issue >> > watches on reconnect and hold off on throwing exceptions if the server >> > returns. >> > >> > This would allow the user to just handle three conditions... total >> ensemble >> > failure, no ACL permission, or no node existing (of vice-versa). >> > >> > Kevin >> > >> > >> >> If I run an async request, the client should replay these if I'm >> >> reconnected to another host. >> >> >> >> -- >> > Founder/CEO Spinn3r.com >> > Location: San Francisco, CA >> > AIM/YIM: sfburtonator >> > Skype: burtonator >> > Work: http://spinn3r.com >> >> > > > -- > Founder/CEO Spinn3r.com > Location: San Francisco, CA > AIM/YIM: sfburtonator > Skype: burtonator > Work: http://spinn3r.com > -- Regards, Hiram Blog: http://hiramchirino.com Open Source SOA http://open.iona.com