[
https://issues.apache.org/jira/browse/HBASE-28139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772906#comment-17772906
]
Li Chao commented on HBASE-28139:
---------------------------------
hi ruanhui
I design an UT in the HBASE-28139.patch. View the test case of
TestRaceBetweenSCPAndDTPOnPreDisable, i reproduce the scenario. When SCP run on
SERVER_CRASH_ASSIGN and DTP run on DISABLE_TABLE_PREPARE, DTP haven't changed
table state to disabling. In the scenario, SCP will create TRSP successful. At
that time, due to DTP hold xlock, TRSP could not be executed.
> Disable table may hang when SCP create TRSP but DTP didn't set tableState to
> disabling
> --------------------------------------------------------------------------------------
>
> Key: HBASE-28139
> URL: https://issues.apache.org/jira/browse/HBASE-28139
> Project: HBase
> Issue Type: Bug
> Components: amv2
> Affects Versions: 2.4.17
> Reporter: Li Chao
> Priority: Major
> Attachments: HBASE-28139.patch
>
>
> Consider the following case:
> 1. RegionServer stop or abort, ServerCrashProcedure start running;
> 2. Now, DisableTableProcedure start running but not set tableState to
> disabling;
> 3. ServerCrashProcedure create TransitStateProcedure with success, but can
> not running because of xLock had hold by DisableTableProcedure ;
> 4. DisableTable Procedure UnassignProcedure RPC fails because server is down.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)