You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ju...@apache.org on 2017/06/12 04:34:32 UTC
kafka git commit: KAFKA-5405; Request log should log throttle time
Repository: kafka
Updated Branches:
refs/heads/trunk 40509fd7b -> a623d8fe3
KAFKA-5405; Request log should log throttle time
Record `apiThrottleTime` in RequestChannel.
junrao A trivial change. Please review. Thanks.
Author: huxihx <hu...@hotmail.com>
Reviewers: Jun Rao <ju...@gmail.com>
Closes #3265 from huxihx/KAFKA-5405
Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/a623d8fe
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/a623d8fe
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/a623d8fe
Branch: refs/heads/trunk
Commit: a623d8fe391f4c4439707b4522c66a3764f620d8
Parents: 40509fd
Author: huxihx <hu...@hotmail.com>
Authored: Sun Jun 11 21:34:29 2017 -0700
Committer: Jun Rao <ju...@gmail.com>
Committed: Sun Jun 11 21:34:29 2017 -0700
----------------------------------------------------------------------
core/src/main/scala/kafka/network/RequestChannel.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kafka/blob/a623d8fe/core/src/main/scala/kafka/network/RequestChannel.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/network/RequestChannel.scala b/core/src/main/scala/kafka/network/RequestChannel.scala
index bb19346..aff1526 100644
--- a/core/src/main/scala/kafka/network/RequestChannel.scala
+++ b/core/src/main/scala/kafka/network/RequestChannel.scala
@@ -189,8 +189,8 @@ object RequestChannel extends Logging {
val apiRemoteTimeMs = nanosToMs(apiRemoteCompleteTimeNanos - apiLocalCompleteTimeNanos)
val responseQueueTimeMs = nanosToMs(responseDequeueTimeNanos - responseCompleteTimeNanos)
val responseSendTimeMs = nanosToMs(endTimeNanos - responseDequeueTimeNanos)
- requestLogger.trace("Completed request:%s from connection %s;totalTime:%f,requestQueueTime:%f,localTime:%f,remoteTime:%f,responseQueueTime:%f,sendTime:%f,securityProtocol:%s,principal:%s,listener:%s"
- .format(requestDesc(detailsEnabled), connectionId, totalTimeMs, requestQueueTimeMs, apiLocalTimeMs, apiRemoteTimeMs, responseQueueTimeMs, responseSendTimeMs, securityProtocol, session.principal, listenerName.value))
+ requestLogger.trace("Completed request:%s from connection %s;totalTime:%f,requestQueueTime:%f,localTime:%f,remoteTime:%f,throttleTime:%f,responseQueueTime:%f,sendTime:%f,securityProtocol:%s,principal:%s,listener:%s"
+ .format(requestDesc(detailsEnabled), connectionId, totalTimeMs, requestQueueTimeMs, apiLocalTimeMs, apiRemoteTimeMs, apiThrottleTime, responseQueueTimeMs, responseSendTimeMs, securityProtocol, session.principal, listenerName.value))
}
}
}