morningman commented on code in PR #15297:
URL: https://github.com/apache/doris/pull/15297#discussion_r1056755676


##########
fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java:
##########
@@ -319,12 +319,9 @@ protected TScanRangeLocations 
newLocations(TBrokerScanRangeParams params, Broker
         brokerScanRange.setParams(params);
         if (brokerDesc.getStorageType() == StorageBackend.StorageType.BROKER
                 || brokerDesc.getStorageType() == 
StorageBackend.StorageType.OFS) {
-            FsBroker broker = null;
-            try {
-                broker = Env.getCurrentEnv().getBrokerMgr()
-                        .getBroker(brokerDesc.getName(), 
selectedBackend.getHost());
-            } catch (AnalysisException e) {
-                throw new UserException(e.getMessage());
+            FsBroker broker = 
Env.getCurrentEnv().getBrokerMgr().getAnyAliveBroker();

Review Comment:
   Why discard the `selectedBackend` attribute?
   It is useful for multi load.



-- 
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

Reply via email to