[
https://issues.apache.org/jira/browse/HBASE-27333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duo Zhang updated HBASE-27333:
------------------------------
Fix Version/s: 2.5.3
(was: 2.5.2)
> 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, 2.5.3
>
>
> 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)