yiguolei commented on code in PR #33383:
URL: https://github.com/apache/doris/pull/33383#discussion_r1568534646


##########
fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java:
##########
@@ -4083,6 +4087,54 @@ public List<QueryStatisticsItem.FragmentInstanceInfo> 
getFragmentInstanceInfos()
         return result;
     }
 
+    @Override
+    public void refreshExecStatus() {
+        List<TNetworkAddress> backendAddresses = Lists.newArrayList();
+        if (this.enablePipelineXEngine) {
+            for (Long backendId : this.beToPipelineExecCtxs.keySet()) {
+                Backend backend = idToBackend.get(backendId);
+                backendAddresses.add(new TNetworkAddress(backend.getHost(), 
backend.getBePort()));
+            }
+        } else {
+            for (Long backendId : this.beToExecStates.keySet()) {
+                Backend backend = idToBackend.get(backendId);
+                backendAddresses.add(new TNetworkAddress(backend.getHost(), 
backend.getBePort()));
+            }
+        }
+
+        for (TNetworkAddress address : backendAddresses) {

Review Comment:
   If there are many BEs, call one by one is very slow.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to