You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/12/24 15:33:19 UTC

[GitHub] [doris] Yulei-Yang commented on a diff in pull request #15297: [Improvement](multi-catalog) support hive external tables which store data on tencent chdfs

Yulei-Yang commented on code in PR #15297:
URL: https://github.com/apache/doris/pull/15297#discussion_r1056840894


##########
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:
   oh, my fault, I'm careless



-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org