hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-19192) HMaster#getRegionServerInfoPort() should respect config value of -1
Date Mon, 06 Nov 2017 22:05:00 GMT
Ted Yu created HBASE-19192:
------------------------------

             Summary: HMaster#getRegionServerInfoPort() should respect config value of -1
                 Key: HBASE-19192
                 URL: https://issues.apache.org/jira/browse/HBASE-19192
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


{code}
  public int getRegionServerInfoPort(final ServerName sn) {
    RegionServerInfo info = this.regionServerTracker.getRegionServerInfo(sn);
    if (info == null || info.getInfoPort() == 0) {
      return conf.getInt(HConstants.REGIONSERVER_INFO_PORT,
        HConstants.DEFAULT_REGIONSERVER_INFOPORT);
    }
    return info.getInfoPort();
{code}
hbase.regionserver.info.port config is only checked when regionServerTracker doesn't have
info port.
When hbase.regionserver.info.port is set to -1 by user, we should respect the config value
and disable UI.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message