public Set<TDataNodeLocation> getDatabaseRelatedDataNodes(
      String database, TConsensusGroupType type) {
    return databasePartitionTables.get(database).getDatabaseRelatedDataNodes(type);
  }
Get the DataNodes who contain the specific database's Schema or Data.

@param database The specific database's name
@param type SchemaRegion or DataRegion
@return Set {@literal <}TDataNodeLocation{@literal >}, the related DataNodes
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java