Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6853

ResponseMetadata calculates latency incorrectly (and therefore ZooKeeperRequestLatencyMs is incorrect)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.1.1, 2.0.0
    • core
    • None

    Description

      responseTimeMs always negative.

      Currently:

      case class ResponseMetadata(sendTimeMs: Long, receivedTimeMs: Long) {
        def responseTimeMs: Long = sendTimeMs - receivedTimeMs
      }
      

      Should be:

      case class ResponseMetadata(sendTimeMs: Long, receivedTimeMs: Long) {
        def responseTimeMs: Long = receivedTimeMs - sendTimeMs
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Fuud Fuud
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: