xiaochen-zhou commented on code in PR #8898: URL: https://github.com/apache/seatunnel/pull/8898#discussion_r1984479631
########## seatunnel-connectors-v2/connector-starrocks/src/main/java/org/apache/seatunnel/connectors/seatunnel/starrocks/client/source/StarRocksQueryPlanReadClient.java: ########## @@ -140,6 +141,7 @@ private Map<String, List<Long>> selectBeForTablet(QueryPlan queryPlan) { private QueryPlan getQueryPlan(String querySQL, String table) { List<String> nodeUrls = sourceConfig.getNodeUrls(); + Collections.shuffle(nodeUrls); Review Comment: Done ########## seatunnel-connectors-v2/connector-starrocks/src/main/java/org/apache/seatunnel/connectors/seatunnel/starrocks/client/source/StarRocksQueryPlanReadClient.java: ########## @@ -140,6 +141,7 @@ private Map<String, List<Long>> selectBeForTablet(QueryPlan queryPlan) { private QueryPlan getQueryPlan(String querySQL, String table) { List<String> nodeUrls = sourceConfig.getNodeUrls(); + Collections.shuffle(nodeUrls); Review Comment: > Let's add some comment on here. Make sure other devs know why we need shuffle. Done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org