public Optional<TRegionReplicaSet> getRegionReplicaSet(TConsensusGroupId regionId) {
    return configManager.getPartitionManager().getAllReplicaSets().stream()
        .filter(rg -> rg.regionId.equals(regionId))
        .findAny();
  }
Find all DataNodes which contains the given regionId

@param regionId region id
@return DataNode locations
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/env/RegionMaintainHandler.java