public static Map<Integer, Set<Integer>> getAllRegionMap(Statement statement) throws Exception {
    ResultSet showRegionsResult = statement.executeQuery(SHOW_REGIONS);
    Map<Integer, Set<Integer>> regionMap = new HashMap<>();
    while (showRegionsResult.next()) {
      int regionId = showRegionsResult.getInt(ColumnHeaderConstant.REGION_ID);
      int dataNodeId = showRegionsResult.getInt(ColumnHeaderConstant.DATA_NODE_ID);
      regionMap.computeIfAbsent(regionId, id -> new HashSet<>()).add(dataNodeId);
    }
    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