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

ResponseMetadata calculates latency incorrectly (and therefore ZooKeeperRequestLatencyMs is incorrect)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.1, 2.0.0
    • Component/s: core
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: