mymeiyi commented on code in PR #35558:
URL: https://github.com/apache/doris/pull/35558#discussion_r1628697121


##########
fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java:
##########
@@ -1602,6 +1623,20 @@ private boolean loadTxnCommitImpl(TLoadTxnCommitRequest 
request) throws UserExce
                         request.getTbl(), request.getUserIp(), 
PrivPredicate.LOAD);
             }
         }
+        if (request.groupCommit) {
+            String clientAddr = getClientAddrAsString();
+            SystemInfoService systemInfoService = Env.getCurrentSystemInfo();
+            long backendId = -1;
+            for (Long id : systemInfoService.getAllBackendIds(false)) {
+                Backend backend = systemInfoService.getBackend(id);
+                if (clientAddr.equals(backend.getHost())) {

Review Comment:
   if one host starts 2 bes, the backendId may be wrong



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