public List<TRegionReplicaSet> filterRegionGroupThroughStatus(
      String database, RegionGroupStatus... status) {
    List<TConsensusGroupId> matchedRegionGroups =
        getLoadManager().filterRegionGroupThroughStatus(status);
    return getReplicaSets(database, matchedRegionGroups);
  }
Filter the RegionGroups in the specified Database through the RegionGroupStatus.

@param database The specified Database
@param status The specified RegionGroupStatus
@return Filtered RegionGroups with the specified RegionGroupStatus
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java