wangbo commented on code in PR #48187: URL: https://github.com/apache/doris/pull/48187#discussion_r1968692400
########## 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: 因为这个地方是groupcommit,改了就得测试,并且groupcommit的其他地方也要改。 -- 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