Chia-Ping Tsai created KAFKA-21602:
--------------------------------------

             Summary: throttle-time of ControllerMutation is not updated for 
forwarded requests
                 Key: KAFKA-21602
                 URL: https://issues.apache.org/jira/browse/KAFKA-21602
             Project: Kafka
          Issue Type: Bug
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


 
{code:java}
    if (maxThrottleTimeMs > 0 && !request.isForwarded) {
      request.apiThrottleTimeMs(maxThrottleTimeMs)
      if (controllerThrottleTimeMs > requestThrottleTimeMs) {
        throttle(quotas.controllerMutation, request, controllerThrottleTimeMs)
      } else {
        throttle(quotas.request, request, requestThrottleTimeMs)
      }
    }
{code}
The throttle-time is updated only if the requests are sent to the controller 
directly. However, the common case is that the broker forwards the requests 
from clients to the controller, so it is never updated.

 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to