github-actions[bot] commented on code in PR #70446:
URL: https://github.com/apache/doris/pull/70446#discussion_r4661745817


##########
fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java:
##########
@@ -1509,9 +1509,7 @@ public TLoadTxnBeginResult 
loadTxnBegin(TLoadTxnBeginRequest request) throws TEx
     }
 
     private TLoadTxnBeginResult loadTxnBeginImpl(TLoadTxnBeginRequest request, 
String clientIp) throws UserException {
-        if (request.isSetAuthCode()) {
-            // TODO: deprecated, removed in 3.1, use token instead.
-        } else if (Strings.isNullOrEmpty(request.getToken())) {
+        if (Strings.isNullOrEmpty(request.getToken())) {
             checkSingleTablePasswordAndPrivs(request.getUser(), 
request.getPasswd(), request.getDb(),
                     request.getTbl(), request.getUserIp(), PrivPredicate.LOAD,

Review Comment:
   [P1] Preserve FE-first rolling-upgrade compatibility for legacy BE load 
credentials. An older BE still sends group-commit HTTP-stream plans with the 
literal token "group_commit", and its routine-load/WAL transaction requests 
serialize only the required auth_code because the old set_request_auth prefers 
that field over the heartbeat token. With this new checkTokenOrThrow path and 
the removed auth_code branches, a new FE rejects the group-commit plan and 
falls through to empty-password authentication for the legacy 
begin/commit/rollback requests, so routine load, WAL replay, and group commit 
fail while old BEs are still draining. Keep a version-gated compatibility path 
(or otherwise coordinate the upgrade) until old BEs can no longer call these 
RPCs, and add an FE-new/BE-old interoperability test.



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