You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Xiaolin Ha (Jira)" <ji...@apache.org> on 2022/08/26 10:45:00 UTC
[jira] [Created] (HBASE-27333) The condition for using the local hostname is the opposite
Xiaolin Ha created HBASE-27333:
----------------------------------
Summary: The condition for using the local hostname is the opposite
Key: HBASE-27333
URL: https://issues.apache.org/jira/browse/HBASE-27333
Project: HBase
Issue Type: Bug
Components: regionserver
Affects Versions: 2.4.13, 3.0.0-alpha-3
Reporter: Xiaolin Ha
Assignee: Xiaolin Ha
Fix For: 2.5.1, 3.0.0-alpha-4
For HRegionServer#handleReportForDutyResponse, when the hostname is different from the regionserver and master side, the condition to use the local hostname configed on regionserver is opposite.
{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)