private boolean isAnySplitOrMergeProcedureRunning(MasterProcedureEnv env) {
    return env.getMasterServices().getMasterProcedureExecutor().getProcedures().stream()
      .filter(p -> !p.isFinished())
      .filter(
        p -> p instanceof SplitTableRegionProcedure || p instanceof MergeTableRegionsProcedure)
      .anyMatch(
        p -> ((AbstractStateMachineTableProcedure<?>) p).getTableName().equals(getTableName()));
  }
A procedure used to take snapshot on tables.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/SnapshotProcedure.java