yiguolei commented on code in PR #48187:
URL: https://github.com/apache/doris/pull/48187#discussion_r1968682214
##########
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);
Review Comment:
auth 里能否把函数名换成 compute groups呢? 这样,我们只有元数据里还有用户接口那里是resource
tag,底层实际都是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: [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]