Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-alpha-3, 2.5.3
-
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
- relates to
-
HBASE-28802 Log the IP when hbase.server.useip.enabled is set to true
- Resolved
- links to