TaiJuWu commented on code in PR #18447:
URL: https://github.com/apache/kafka/pull/18447#discussion_r1908157891


##########
core/src/main/scala/kafka/server/KafkaApis.scala:
##########
@@ -233,7 +232,7 @@ class KafkaApis(val requestChannel: RequestChannel,
         case ApiKeys.CREATE_PARTITIONS => maybeForwardToController(request, 
handleCreatePartitionsRequest)
         // Create, renew and expire DelegationTokens must first validate that 
the connection
         // itself is not authenticated with a delegation token before 
maybeForwardToController.
-        case ApiKeys.CREATE_DELEGATION_TOKEN => 
handleCreateTokenRequest(request)
+        case ApiKeys.CREATE_DELEGATION_TOKEN => 
maybeForwardToController(request, null)

Review Comment:
   After discussion with @chia7712 , we can keep these handlers and just throw 
exception within them, it can minimize change.



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

Reply via email to