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)