@Override
    public OperationStatus[] batchMutate(Mutation[] mutations, boolean atomic, long nonceGroup,
      long nonce) throws IOException {
      if (
        MasterRegionFactory.TABLE_NAME.equals(getTableDescriptor().getTableName())
          && ERROR_OUT.get()
      ) {
        ERROR_OUT.set(false);
        throw new IOException("test error");
      }
      return super.batchMutate(mutations, atomic, nonceGroup, nonce);
    }
MasterRegion related test that ensures the operations continue even when Procedure state update
encounters non-retriable IO errors.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterRegionMutation2.java