public List<TRegionReplicaSet> getReplicaSets(
      String database, List<TConsensusGroupId> regionGroupIds) {
    if (databasePartitionTables.containsKey(database)) {
      return databasePartitionTables.get(database).getReplicaSets(regionGroupIds);
    } else {
      return Collections.emptyList();
    }
  }
Only leader use this interface.

@param database The specified Database
@param regionGroupIds The specified RegionGroupIds
@return All Regions' RegionReplicaSet of the specified Database
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java