[ 
https://issues.apache.org/jira/browse/HBASE-27333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaolin Ha updated HBASE-27333:
-------------------------------
    Fix Version/s:     (was: 2.5.4)
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

Merged to master and branch-2, thanks [~apurtell] for reviewing.

> Abort RS when the hostname is different from master seen
> --------------------------------------------------------
>
>                 Key: HBASE-27333
>                 URL: https://issues.apache.org/jira/browse/HBASE-27333
>             Project: HBase
>          Issue Type: Bug
>          Components: regionserver
>    Affects Versions: 3.0.0-alpha-3, 2.4.13
>            Reporter: Xiaolin Ha
>            Assignee: Xiaolin Ha
>            Priority: Major
>             Fix For: 2.6.0, 3.0.0-alpha-4
>
>
> For HRegionServer#handleReportForDutyResponse, when the hostname is different 
> from the regionserver and master side, both the two conditions should abort 
> RS.
> {code:java}
> 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);
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to