Skip to content

Commit

Permalink
HBASE-27333 The condition for using the local hostname is the opposite
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhelly committed Sep 2, 2022
1 parent 92cf962 commit 52632d3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,8 @@ protected void handleReportForDutyResponse(final RegionServerStartupResponse c)
String msg = "Master passed us a different hostname to use; was="
+ this.useThisHostnameInstead + ", but now=" + hostnameFromMasterPOV;
LOG.error(msg);
throw new IOException(msg);
this.serverName = ServerName.valueOf(useThisHostnameInstead,
rpcServices.getSocketAddress().getPort(), this.startcode);
}
if (
StringUtils.isBlank(useThisHostnameInstead)
Expand All @@ -1362,6 +1363,7 @@ protected void handleReportForDutyResponse(final RegionServerStartupResponse c)
String msg = "Master passed us a different hostname to use; was="
+ rpcServices.getSocketAddress().getHostName() + ", but now=" + hostnameFromMasterPOV;
LOG.error(msg);
throw new IOException(msg);
}
continue;
}
Expand Down

0 comments on commit 52632d3

Please sign in to comment.