public TSStatus updateRegionLocation(UpdateRegionLocationPlan req) {
    TSStatus addStatus =
        addRegionLocation(new AddRegionLocationPlan(req.getRegionId(), req.getNewNode()));
    if (addStatus.getCode() != TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
      return addStatus;
    }
    return removeRegionLocation(new RemoveRegionLocationPlan(req.getRegionId(), req.getOldNode()));
  }
Check if the specified RegionGroup exists.

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