protected static Map<Integer, Set<Integer>> getRunningRegionMap(
      List<TRegionInfo> regionInfoList) {
    Map<Integer, Set<Integer>> regionMap = new HashMap<>();
    regionInfoList.stream()
        .filter(regionInfo -> RegionStatus.Running.getStatus().equals(regionInfo.getStatus()))
        .forEach(
            regionInfo -> {
              int regionId = regionInfo.getConsensusGroupId().getId();
              regionMap
                  .computeIfAbsent(regionId, regionId1 -> new HashSet<>())
                  .add(regionInfo.getDataNodeId());
            });
    return regionMap;
  }
Monitor the node's log and kill it when detect specific log.

@param nodeWrapper Easy to understand
@param keywords When detect these keywords in node's log, stop the node forcibly
integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/IoTDBRegionOperationReliabilityITFramework.java