You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/05/03 11:25:00 UTC

[jira] [Commented] (KAFKA-6853) ResponseMetadata calculates latency incorrectly (and therefore ZooKeeperRequestLatencyMs is incorrect)

    [ https://issues.apache.org/jira/browse/KAFKA-6853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462292#comment-16462292 ] 

ASF GitHub Bot commented on KAFKA-6853:
---------------------------------------

Fuud opened a new pull request #4961: KAFKA-6853: ResponseMetadata calculates latency incorrectly 
URL: https://github.com/apache/kafka/pull/4961
 
 
   ResponseMetadata.responseTimeMs is always negative. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> ResponseMetadata calculates latency incorrectly (and therefore ZooKeeperRequestLatencyMs is incorrect)
> ------------------------------------------------------------------------------------------------------
>
>                 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
>            Priority: Minor
>
> 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)