morningman commented on code in PR #15297: URL: https://github.com/apache/doris/pull/15297#discussion_r1055472847
########## fe/fe-core/src/main/java/org/apache/doris/catalog/BrokerMgr.java: ########## @@ -128,6 +128,22 @@ public FsBroker getAnyBroker(String brokerName) { } } + public FsBroker getAnyAliveBroker() { + lock.lock(); + try { + for (List<FsBroker> list : brokerListMap.values()) { + for (FsBroker fsBroker : list) { + if (fsBroker.isAlive) { + return fsBroker; Review Comment: you will always get the first broker -- 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...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org