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

Abort RS when the hostname is different from master seen

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-3, 2.5.3
    • 2.6.0, 3.0.0-alpha-4
    • regionserver
    • None

    Description

      For HRegionServer#handleReportForDutyResponse, when the hostname is different from the regionserver and master side, both the two conditions should abort RS.

      if (
        !StringUtils.isBlank(useThisHostnameInstead)
          && !hostnameFromMasterPOV.equals(useThisHostnameInstead)
      ) {
        String msg = "Master passed us a different hostname to use; was="
          + this.useThisHostnameInstead + ", but now=" + hostnameFromMasterPOV;
        LOG.error(msg);
        throw new IOException(msg);
      }
      if (
        StringUtils.isBlank(useThisHostnameInstead)
          && !hostnameFromMasterPOV.equals(rpcServices.getSocketAddress().getHostName())
      ) {
        String msg = "Master passed us a different hostname to use; was="
          + rpcServices.getSocketAddress().getHostName() + ", but now=" + hostnameFromMasterPOV;
        LOG.error(msg);
      } 

      Attachments

        Issue Links

          Activity

            People

              Xiaolin Ha Xiaolin Ha
              Xiaolin Ha Xiaolin Ha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: