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


##########
fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java:
##########
@@ -1874,7 +1876,9 @@ private boolean commitTxnImpl(TCommitTxnRequest request) 
throws UserException {
         if (request.isSetAuthCode()) {
             // TODO: deprecated, removed in 3.1, use token instead.
         } else if (request.isSetToken()) {
-            checkToken(request.getToken());

Review Comment:
   The same bug still exists in both rollback handlers. `loadTxnRollbackImpl()` 
and `rollbackTxnImpl()` still call `checkToken(request.getToken())` and ignore 
the boolean result, so any invalid token can continue into 
`abortTransaction(...)`. Since the PR goal is to reject invalid tokens on 
commit and rollback, this needs the same explicit failure path that you added 
here.



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