public TSStatus addRegionLocation(final AddRegionLocationPlan req) {
    try {
      return getConsensusManager().write(req);
    } catch (final ConsensusException e) {
      LOGGER.warn(CONSENSUS_WRITE_ERROR, e);
      final TSStatus res = new TSStatus(TSStatusCode.EXECUTE_STATEMENT_ERROR.getStatusCode());
      res.setMessage(e.getMessage());
      return res;
    }
  }
Check if the specified RegionGroup exists.

@param regionGroupId The specified RegionGroup
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java