You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2023/01/17 22:13:00 UTC
[jira] [Updated] (HBASE-27333) Abort RS when the hostname is different from master seen
[ https://issues.apache.org/jira/browse/HBASE-27333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell updated HBASE-27333:
----------------------------------------
Fix Version/s: 2.5.4
(was: 2.5.3)
> 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.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)