public List<TRegionReplicaSet> getAllReplicaSets(int dataNodeId) {
    return partitionInfo.getAllReplicaSets(dataNodeId);
  }
Get all RegionGroups currently owned by the specified Database.

@param dataNodeId The specified dataNodeId
@return Deep copy of all RegionGroups' RegionReplicaSet with the specified dataNodeId
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java