jsancio commented on code in PR #12372:
URL: https://github.com/apache/kafka/pull/12372#discussion_r911517339
##########
core/src/main/scala/kafka/server/ControllerApis.scala:
##########
@@ -117,6 +117,11 @@ class ControllerApis(val requestChannel: RequestChannel,
s"with context ${request.context}", t)
requestHelper.handleError(request, t)
}
+ } finally {
+ // Only record local completion time if it is unset.
+ if (request.apiLocalCompleteTimeNanos < 0) {
+ request.apiLocalCompleteTimeNanos = time.nanoseconds
Review Comment:
All the requests to the controller and kraft get queued for another thread
to do the work. That means that for these RPCs the api local time is the time
it took to authorize the request and queue the request for the controller or
kraft, right?
--
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]