[ 
https://issues.apache.org/jira/browse/HBASE-20589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482279#comment-16482279
 ] 

Guanghao Zhang commented on HBASE-20589:
----------------------------------------

I add two log in HRegionServer#tryRegionServerReport. The RS's host name is 
{color:#FF0000}hao-OptiPlex-7050{color} but the host it reported to master is 
{color:#FF0000}hao-optiplex-7050{color}.
{code:java}
RegionServerReportRequest.Builder request = 
RegionServerReportRequest.newBuilder();
+ LOG.info("Server name is " + this.serverName + " host is " + 
this.serverName.getHostname());
ServerName sn = 
ServerName.parseVersionedServerName(this.serverName.getVersionedBytes());
+ LOG.info("Try region server report server name is " + sn + " host is " + 
sn.getHostname());
request.setServer(ProtobufUtil.toServerName(sn));
{code}
2018-05-21 14:16:58,084 INFO [RS:1;hao-OptiPlex-7050:46818] 
regionserver.HRegionServer(1194): Server name is 
hao-optiplex-7050,46818,1526883412677 host is 
{color:#FF0000}hao-OptiPlex-7050{color}

2018-05-21 14:16:58,084 INFO [RS:1;hao-OptiPlex-7050:46818] 
regionserver.HRegionServer(1196): Try region server report server name is 
hao-optiplex-7050,46818,1526883412677 host is 
{color:#FF0000}hao-optiplex-7050{color}

> Don't need to assign meta to a new RS when standby master become active
> -----------------------------------------------------------------------
>
>                 Key: HBASE-20589
>                 URL: https://issues.apache.org/jira/browse/HBASE-20589
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Guanghao Zhang
>            Assignee: Guanghao Zhang
>            Priority: Major
>         Attachments: HBASE-20589.master.001.patch, 
> HBASE-20589.master.002.patch, HBASE-20589.master.003.patch, 
> HBASE-20589.master.003.patch, HBASE-20589.master.004.patch, 
> HBASE-20589.master.005.patch
>
>
> I found this problem when I write ut for HBASE-20569. Now the master  
> finishActiveMasterInitialization introduce a new 
> RecoverMetaProcedure(HBASE-18261) and it has a sub procedure AssignProcedure. 
> AssignProcedure will skip assign a region when regions state is OPEN and 
> server is online. But for the new regiog state node is created with state 
> OFFLINE. So it will assign the meta to a new RS. And kill the old RS when old 
> RS report to master. This will make the master initialization cost a long 
> time. I will attatch a ut to show this. FYI [~stack]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to