nirdosh0110 commented on code in PR #8583:
URL: https://github.com/apache/hbase/pull/8583#discussion_r3905310464


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/MergeTableRegionsProcedure.java:
##########
@@ -284,9 +284,13 @@ protected void rollbackState(final MasterProcedureEnv env, 
final MergeTableRegio
           cleanupMergedRegion(env);
           break;
         case MERGE_TABLE_REGIONS_CHECK_CLOSED_REGIONS:
+          rollbackCloseRegionsForMerge(env);
           break;
         case MERGE_TABLE_REGIONS_CLOSE_REGIONS:
-          rollbackCloseRegionsForMerge(env);
+          // If it rolls back with state MERGE_TABLE_REGIONS_CLOSE_REGIONS, no 
need to call
+          // rollbackCloseRegionsForMerge(), otherwise, it will result in 
duplicate
+          // TransitRegionStateProcedures for parents that are already 
OPENING. Mirrors

Review Comment:
   Thanks for catching. Updated the comment. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to