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

HMaster#getRegionServerInfoPort() should respect config value of -1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

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

      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.

      Attachments

        Activity

          People

            gubjanos Janos Gub
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: