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


##########
fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/LoadAction.java:
##########
@@ -439,18 +440,24 @@ private TNetworkAddress 
selectLocalRedirectBackend(boolean groupCommit, HttpServ
             throws LoadException {
         Backend backend = null;
         BeSelectionPolicy policy = null;
-        String qualifiedUser = ConnectContext.get().getQualifiedUser();
-        Set<Tag> userTags = 
Env.getCurrentEnv().getAuth().getResourceTags(qualifiedUser);
-        policy = new BeSelectionPolicy.Builder()
-                .addTags(userTags)
-                .setEnableRoundRobin(true)
-                .needLoadAvailable().build();
-        policy.nextRoundRobinIndex = getLastSelectedBackendIndexAndUpdate();
         List<Long> backendIds;
         if (groupCommit) {
+            String qualifiedUser = ConnectContext.get().getQualifiedUser();
+            Set<Tag> userTags = 
Env.getCurrentEnv().getAuth().getResourceTags(qualifiedUser);
+            policy = new BeSelectionPolicy.Builder()
+                    .addTags(userTags)

Review Comment:
   为啥这里用tags,下面就用compute group呢?



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