You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/11/06 22:05:00 UTC

[jira] [Created] (HBASE-19192) HMaster#getRegionServerInfoPort() should respect config value of -1

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)