Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 4923 invoked from network); 1 Oct 2009 23:12:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Oct 2009 23:12:20 -0000 Received: (qmail 62971 invoked by uid 500); 1 Oct 2009 23:12:20 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 62937 invoked by uid 500); 1 Oct 2009 23:12:20 -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 62926 invoked by uid 99); 1 Oct 2009 23:12:20 -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 23:12:20 +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 209.85.216.197 as permitted sender) Received: from [209.85.216.197] (HELO mail-px0-f197.google.com) (209.85.216.197) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 23:12:10 +0000 Received: by pxi35 with SMTP id 35so740650pxi.2 for ; Thu, 01 Oct 2009 16:10:49 -0700 (PDT) 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:cc:content-type; bh=BCR2dWjMJv908D1mXq3US3rZxPv8CCRy3YEtdtYj7wY=; b=NEJiA/aICkdXiPPu1Ozuxeo5sLuLrmS9m2mRMrlSMrAPdm/FWKxhso8yTOw/OaAx0Z pLudE12w+pTeDwPnNf3V0GTH2BmujiX40ZH3BgZiabv0WvdiFZZI0zS8zphadVS26Po/ EbWmgD5gq3d6eZI5gl6unJVhJmn4/4WHobfuQ= 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 :cc:content-type; b=gzwJizSHhXwNEPC+HEvR9XQrTqvmXGK8dvsU5Pxv037ITyxcN1mA5beTn9zpZfL8z0 k8ZU0If/ZHwwwifEHe5G9n3mo7a+LC2qguS/tZ+CPXukjTIY46LRnHe9Nnm7PPKxsfeh V6BoWXkPfnTUqiLPK2y2TQuOJVNV3lWkPwLlk= MIME-Version: 1.0 Received: by 10.114.4.25 with SMTP id 25mr2978369wad.164.1254438649452; Thu, 01 Oct 2009 16:10:49 -0700 (PDT) In-Reply-To: <755F6B792C85484E8665C01CE5E0F74101A1CC1C@corpdc-exch01.corp.digimine.com> References: <4B94F7D3090A974E94A9BD23E57BB14303179673@corpdc-exch01.corp.digimine.com> <4AC5309F.4060609@apache.org> <755F6B792C85484E8665C01CE5E0F74101A1CC1C@corpdc-exch01.corp.digimine.com> From: Ted Dunning Date: Thu, 1 Oct 2009 16:10:29 -0700 Message-ID: Subject: Re: How do we find the Server the client is connected to? To: zookeeper-user@hadoop.apache.org Cc: Rob Baccus Content-Type: multipart/alternative; boundary=0016e649c44017da7c0474e7c22d X-Virus-Checked: Checked by ClamAV on apache.org --0016e649c44017da7c0474e7c22d Content-Type: text/plain; charset=UTF-8 Grovel the logs. On Thu, Oct 1, 2009 at 3:46 PM, Todd Greenwood wrote: > 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? > > > > That detail is purposefully not exposed through the client api, > however > > it is output to the log on connection establishment. > > > > Why would your client code need to know which server in the ensemble > it > > is connected to? > > > > Patrick > > > > 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 > > > > > > > -- Ted Dunning, CTO DeepDyve --0016e649c44017da7c0474e7c22d--