public Set<TDataNodeLocation> getDatabaseRelatedDataNodes(
      String database, TConsensusGroupType type) {
    return partitionInfo.getDatabaseRelatedDataNodes(database, type);
  }
Get the DataNodes who contain the specified 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/manager/partition/PartitionManager.java