Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5D3210D4C for ; Thu, 18 Jul 2013 02:52:50 +0000 (UTC) Received: (qmail 2329 invoked by uid 500); 18 Jul 2013 02:52:50 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 2296 invoked by uid 500); 18 Jul 2013 02:52:49 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 2280 invoked by uid 99); 18 Jul 2013 02:52:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2013 02:52:48 +0000 Date: Thu, 18 Jul 2013 02:52:48 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8968) Avoid call to zk in HRegionServer#getMaster() to log the master address which already read from the zk. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-8968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13711956#comment-13711956 ] Hudson commented on HBASE-8968: ------------------------------- SUCCESS: Integrated in HBase-0.94-security #216 (See [https://builds.apache.org/job/HBase-0.94-security/216/]) HBASE-8968 Avoid call to zk in HRegionServer#getMaster() to log the master address which already read from the zk. (rajeshbabu) (larsh: rev 1504335) * /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java > Avoid call to zk in HRegionServer#getMaster() to log the master address which already read from the zk. > -------------------------------------------------------------------------------------------------------- > > Key: HBASE-8968 > URL: https://issues.apache.org/jira/browse/HBASE-8968 > Project: HBase > Issue Type: Bug > Components: Zookeeper > Affects Versions: 0.94.9 > Reporter: rajeshbabu > Assignee: rajeshbabu > Priority: Minor > Fix For: 0.94.10 > > Attachments: HBASE-8968_94.patch > > > To log the master address we are making an extra call to zookeeper which we already read and trying to connect to the address. > {code} > masterServerName = this.masterAddressManager.getMasterAddress(); > if (masterServerName == null) { > if (!keepLooping()) { > // give up with no connection. > LOG.debug("No master found and cluster is stopped; bailing out"); > return null; > } > LOG.debug("No master found; retry"); > previousLogTime = System.currentTimeMillis(); > sleeper.sleep(); > continue; > } > masterIsa = > new InetSocketAddress(masterServerName.getHostname(), masterServerName.getPort()); > LOG.info("Attempting connect to Master server at " + > this.masterAddressManager.getMasterAddress()); > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira