You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Fuud (JIRA)" <ji...@apache.org> on 2018/05/03 11:21:00 UTC
[jira] [Created] (KAFKA-6853) ResponseMetadata calculates latency
incorrectly (and therefore ZooKeeperRequestLatencyMs)
Fuud created KAFKA-6853:
---------------------------
Summary: ResponseMetadata calculates latency incorrectly (and therefore ZooKeeperRequestLatencyMs)
Key: KAFKA-6853
URL: https://issues.apache.org/jira/browse/KAFKA-6853
Project: Kafka
Issue Type: Bug
Components: core
Affects Versions: 1.1.0
Reporter: Fuud
responseTimeMs always negative.
Currently:
{code}
case class ResponseMetadata(sendTimeMs: Long, receivedTimeMs: Long) {
def responseTimeMs: Long = sendTimeMs - receivedTimeMs
}
{code}
Should be:
{code}
case class ResponseMetadata(sendTimeMs: Long, receivedTimeMs: Long) {
def responseTimeMs: Long = receivedTimeMs - sendTimeMs
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)