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

Jingyun Tian edited comment on HBASE-21965 at 3/6/19 9:51 AM:
--------------------------------------------------------------

After checking the code, I think there are 2 situations we need to handle:
# daughter regions are created but not updated to meta yet:
Parent region is in state of CLOSED right now.
For this situation,
If daughter directories are still under the parent directories, simply open the 
parent region should solve the problem. Because during region opening, split 
directories will be deleted.
But if daughter directories is already moved out from parent split directory, 
then we need to find and delete them.
# daughter regions are created and updated to meta already:
Parent region is in state CLOSED and there are informations about daughters in 
meta.
I think we can consider split succeed at this time. What we should do is try to 
assign the daughters.

And Merge procedure should have the similar story.

[~Apache9] [~zghaobac] Please take a look.



was (Author: tianjingyun):
After checking the code, I think there are 2 situations we need to handle:
# daughter regions are created but not updated to meta yet:
Parent region is in state of CLOSED right now.
For this situation, simply open the parent region should solve the problem. 
Because during region opening, all daughter directories will be removed.
# daughter regions are created and updated to meta already:
Parent region is in state CLOSED and there are informations about daughters in 
meta.
I think we can consider split succeed at this time. What we should do is try to 
assign the daughters.

And Merge procedure should have the similar story.

[~Apache9] [~zghaobac] Please take a look.


> Fix failed split and merge transactions that have failed to roll back
> ---------------------------------------------------------------------
>
>                 Key: HBASE-21965
>                 URL: https://issues.apache.org/jira/browse/HBASE-21965
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Jingyun Tian
>            Assignee: Jingyun Tian
>            Priority: Major
>
> Make HBCK2 be able to fix failed split and merge transactions that have 
> failed to roll back.



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

Reply via email to