Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 96416 invoked from network); 1 Oct 2009 22:47:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Oct 2009 22:47:47 -0000 Received: (qmail 40528 invoked by uid 500); 1 Oct 2009 22:47:47 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 40488 invoked by uid 500); 1 Oct 2009 22:47: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 40478 invoked by uid 99); 1 Oct 2009 22:47:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 22:47:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.249.141.200] (HELO CorpDC-ASMX02.uscorp.audiencescience.com) (209.249.141.200) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 22:47:38 +0000 X-AuditID: ac120b16-b7b21ae0000033d3-bb-4ac531568e9e Received: from corpdc-exch01.corp.digimine.com (Unknown_Domain [172.18.16.20]) by CorpDC-ASMX02.uscorp.audiencescience.com (Symantec Brightmail Gateway) with SMTP id 96.15.13267.65135CA4; Thu, 1 Oct 2009 15:46:46 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How do we find the Server the client is connected to? Date: Thu, 1 Oct 2009 15:46:51 -0700 Message-ID: <755F6B792C85484E8665C01CE5E0F74101A1CC1C@corpdc-exch01.corp.digimine.com> In-Reply-To: <4AC5309F.4060609@apache.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How do we find the Server the client is connected to? Thread-Index: AcpC6OT7Cb13hDxSTUGVvbg4z3wlHQAABsww References: <4B94F7D3090A974E94A9BD23E57BB14303179673@corpdc-exch01.corp.digimine.com> <4AC5309F.4060609@apache.org> From: "Todd Greenwood" To: , "Rob Baccus" X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org Failover testing. > -----Original Message----- > From: Patrick Hunt [mailto:phunt@apache.org] > Sent: Thursday, October 01, 2009 3:44 PM > To: zookeeper-user@hadoop.apache.org; Rob Baccus > Subject: Re: How do we find the Server the client is connected to? >=20 > That detail is purposefully not exposed through the client api, however > it is output to the log on connection establishment. >=20 > Why would your client code need to know which server in the ensemble it > is connected to? >=20 > Patrick >=20 > Rob Baccus wrote: > > How do I determine the server the client is connected to? It is not > > exposed as far as I can see in either the ZooKeep object or the > > ClentCnxn object. I did find on line 790 in ClientCnxn.StartConnect() > > method the place the actual server connection is happening but that is > > not exposed. > > > > Rob Baccus > > 425-201-3812 > > > >