public void updateTopology(Map<Integer, Set<Integer>> latestTopology) {
    if (!latestTopology.equals(topologyGraph)) {
      LOGGER.info("[Topology Service] Cluster topology changed, latest: {}", latestTopology);
    }
    topologyGraph = latestTopology;
    topologyUpdated.set(true);
  }
Wait for the specified RegionGroups to finish leader election.

@param regionGroupIds Specified RegionGroupIds
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/LoadCache.java