From zookeeper-user-return-189-apmail-hadoop-zookeeper-user-archive=hadoop.apache.org@hadoop.apache.org Mon Jan 05 22:17:48 2009 Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@locus.apache.org Received: (qmail 57686 invoked from network); 5 Jan 2009 22:17:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2009 22:17:47 -0000 Received: (qmail 39064 invoked by uid 500); 5 Jan 2009 22:17:47 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 39040 invoked by uid 500); 5 Jan 2009 22:17:47 -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 39025 invoked by uid 99); 5 Jan 2009 22:17:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 14:17:47 -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 [207.126.228.149] (HELO rsmtp1.corp.yahoo.com) (207.126.228.149) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 22:17:41 +0000 Received: from [172.21.148.233] (wlanvpn-mc2e-246-233.corp.yahoo.com [172.21.148.233]) (authenticated bits=0) by rsmtp1.corp.yahoo.com (8.13.8/8.13.8/y.rout) with ESMTP id n05MHDqF005652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Jan 2009 14:17:13 -0800 (PST) Message-ID: <496286E8.9010804@apache.org> Date: Mon, 05 Jan 2009 14:17:12 -0800 From: Patrick Hunt User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Patrick Hunt CC: zookeeper-user@hadoop.apache.org Subject: Re: multiple disconnect events is not a state change. References: <30c6373b0901041339j4ed6cc5ewc3eb22dcf14663f5@mail.gmail.com> <49627BA2.4020403@apache.org> <30c6373b0901051357l3a605a16q570a6d38498fa00c@mail.gmail.com> <4962861E.4080805@apache.org> In-Reply-To: <4962861E.4080805@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sorry, meant "current client lib code" Patrick Hunt wrote: > I see what you are saying now, good question. :-) > > In looking at the current server code we generate a disconnected state > event every time the client lib attempts to connect to the server and > fails, even if we are currently in the "disconnected" state. > Ben/Flavio/Mahadev, any insight into why this is? Is this done for a > reason or a "bug"? > > Patrick > > Kevin Burton wrote: >> oh... I was saying that I was receiving an event. I was just printing >> it to >> stdout.... >> Should there be multiple disconnect events? There probably shouldn't >> be... >> you can only be disconnected once. >> >> Kevin >> >> On Mon, Jan 5, 2009 at 1:29 PM, Patrick Hunt wrote: >> >>> What you are seeing is the client attempting to reconnect to a server in >>> the server list after a period of time (or retry if there is only a >>> single >>> server host in the list). There has been a patch since the last release >>> which logs an INFO level message during client connection attempt, so >>> this >>> should be more obvious in future (you will see the disconnected but >>> you will >>> also see a new connection attempt message as well). >>> https://issues.apache.org/jira/browse/ZOOKEEPER-225 >>> >>> However this is not output to stdout, please feel free to enter a >>> jira for >>> this. >>> >>> Regards, >>> >>> Patrick >>> >>> >>> Kevin Burton wrote: >>> >>>> Shutting down my zookeeper server yields this on my client. >>>> >>>> Continual disconnect events. >>>> >>>> Shouldn't only one be issued? The second one is not a state change. >>>> >>>> WatchedEvent: Server state change. New state: Disconnected >>>> WatchedEvent: Server state change. New state: Disconnected >>>> WatchedEvent: Server state change. New state: Disconnected >>>> WatchedEvent: Server state change. New state: Disconnected >>>> WatchedEvent: Server state change. New state: Disconnected >>>> WatchedEvent: Server state change. New state: Disconnected >>>> WatchedEvent: Server state change. New state: Disconnected >>>> >>>> >>>> >> >>