static Map<TDataNodeLocation, List<TConsensusGroupId>> getAllReplicaDataNodeRegionGroupMap(
      Map<TConsensusGroupId, TRegionReplicaSet> regionReplicaSetMap) {
    Map<TDataNodeLocation, List<TConsensusGroupId>> dataNodeConsensusGroupIdMap = new HashMap<>();
    regionReplicaSetMap.forEach(
        (consensusGroupId, regionReplicaSet) -> {
          for (TDataNodeLocation dataNodeLocation : regionReplicaSet.getDataNodeLocations()) {
            dataNodeConsensusGroupIdMap
                .computeIfAbsent(dataNodeLocation, k -> new ArrayList<>())
                .add(regionReplicaSet.getRegionId());
          }
        });
    return dataNodeConsensusGroupIdMap;
  }
Try to execute request on all replica of one consensus group. If some replica failed, execute
according request on some other replica and let consensus layer to sync it.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/schema/DataNodeRegionGroupUtil.java