frostruan commented on code in PR #5560:
URL: https://github.com/apache/hbase/pull/5560#discussion_r1416595305


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/MergeTableRegionsProcedure.java:
##########
@@ -442,7 +442,7 @@ protected ProcedureMetrics 
getProcedureMetrics(MasterProcedureEnv env) {
   private boolean prepareMergeRegion(final MasterProcedureEnv env) throws 
IOException {
     // Fail if we are taking snapshot for the given table
     TableName tn = regionsToMerge[0].getTable();
-    if (env.getMasterServices().getSnapshotManager().isTakingSnapshot(tn)) {
+    if 
(env.getMasterServices().getSnapshotManager().isTableTakingAnySnapshot(tn)) {

Review Comment:
   +1
   
   SplitTableRegionProcedure has the same problem. Maybe we can fix it also ? 
Or File a new issue ?



-- 
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: issues-unsubscr...@hbase.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to