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

Zheng Hu commented on HBASE-21559:
----------------------------------

bq. But they will not hold the map lock when modifying right? 
Assume the case: 
t1.   start snapshot 
t2.   hold the table x-lock
t3.   rease the table x-lock;
t4.   downgrade to slock because table is enabled;
t5.   start snapshot on RS...
t6.   SplitTableRegionProcedure start . 
t7.   STRP hold the table s-lock
t8.   check isTakingSnapshot
.....

Then at t8,  the SnapshotManager may update the status of handler at any time , 
I think. 



> The RestoreSnapshotFromClientTestBase related UT are flaky
> ----------------------------------------------------------
>
>                 Key: HBASE-21559
>                 URL: https://issues.apache.org/jira/browse/HBASE-21559
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Zheng Hu
>            Assignee: Zheng Hu
>            Priority: Major
>             Fix For: 3.0.0, 2.1.2, 2.0.4, 2.0.5
>
>         Attachments: HBASE-21559.v1.patch, 
> TEST-org.apache.hadoop.hbase.client.TestRestoreSnapshotFromClientAfterSplittingRegions.xml,
>  
> org.apache.hadoop.hbase.client.TestRestoreSnapshotFromClientAfterSplittingRegions-output.txt,
>  
> org.apache.hadoop.hbase.client.TestRestoreSnapshotFromClientAfterSplittingRegions.txt
>
>
> The  related UT are: 
> * TestRestoreSnapshotFromClientAfterSplittingRegions
> * TestRestoreSnapshotFromClientWithRegionReplicas
> * TestMobRestoreSnapshotFromClientAfterSplittingRegions
> I guess the main problem is:  a dead lock between SplitTableRegionProcedure 
> and SnapshotProcedure.. 
> Attached logs from the failed UT. 



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

Reply via email to