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

ResponseMetadata calculates latency incorrectly (and therefore ZooKeeperRequestLatencyMs is incorrect)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment