Apache9 commented on code in PR #5560:
URL: https://github.com/apache/hbase/pull/5560#discussion_r1416608198
##########
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:
Let's change the title of the issue and then fix them both.
And also better include the UT provided by @frostruan ?
--
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]