Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8968

Avoid call to zk in HRegionServer#getMaster() to log the master address which already read from the zk.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94.9
    • 0.94.10
    • Zookeeper
    • None

    Description

      To log the master address we are making an extra call to zookeeper which we already read and trying to connect to the address.

            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());
      

      Attachments

        1. HBASE-8968_94.patch
          0.8 kB
          rajeshbabu

        Activity

          People

            rajesh23 rajeshbabu
            rajesh23 rajeshbabu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: