public List<Integer> filterDataNodeThroughStatus(Function<NodeStatus, Boolean> statusPredicate) {
    return loadCache.filterDataNodeThroughStatus(statusPredicate);
  }
Filter DataNodes through the NodeStatus predicate.

@param statusPredicate The NodeStatus predicate
@return Filtered DataNodes with the predicate
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/LoadManager.java