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

yuhuiyang commented on HBASE-22631:
-----------------------------------

[~allan163]  step1 : Region A closed due to HDFS problem in origional 
regionserver in my case and  A  was assignde to the other regionservers with a 
AssignProcedure submitted . For example A was planned to be assigned to 
regionserver rs1 ,and rs1 failed to open region A too as the same HDFS problem 
. So the reigon A will be requeued several time until be OPENED(for example 
rs2).  A was split and deleted by GCRegionProcedure later. 

                  step2 : The rs1 crashed and a ServerCrashProcedure procrs1 
was created .   Procrs1 would get the region A from serverMap when the 
procedure get regions (state = SERVER_CRASH_GET_REGIONS).

                  step3:  Procrs1 will create a subProcedure AssignProcedure 
for region A, so the gced region A will appear and be write to hbase:meta 
、HDFS. 

 

> assign failed may make gced parent region appear again !!!
> ----------------------------------------------------------
>
>                 Key: HBASE-22631
>                 URL: https://issues.apache.org/jira/browse/HBASE-22631
>             Project: HBase
>          Issue Type: Bug
>          Components: proc-v2
>    Affects Versions: 2.1.1
>            Reporter: yuhuiyang
>            Priority: Major
>         Attachments: HBASE-22631-branch-2.1.01.patch
>
>
> When i assign a region A the process is as follows:
> step1 : A is assigned to rs1 , and rs1 fails to open it .
> step2 : assignProcedure handleFailure .
> step3 : A is assign to rs2 and rs success to open it .
> Above is the normal flow . However when rs1 is restart after the reigon A was 
> split and GCRegionProcedure was successed , the region A appare again !
> The region is that reigon A is not removed from the serverMap correctly when 
> assignprocedure handleFailure . Because the code regionNode.offline() make 
> the regionNode's regionLocation to be null and make regionNode's state to 
> OFFLINE . So when the code 
> env.getAssignmentManager().undoRegionAsOpening(regionNode) do nothing . So 
> when the rs1 restart event triggers a serverCrashProcedure, it will get 
> reigons from serverMap and it will get the region A then A will be assigned 
> and hdfs dir will be created. 



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

Reply via email to