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

RequestChannel.sendReponse records incorrect size for NetworkSend with TRACE logging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0.1
    • 1.0.0
    • core
    • None

    Description

      In RequestChannel.scala, RequestChannel.sendResponse records incorrect size for `NetworkSend` when trace logging is enabled, as shown below:

      RequestChannel.scala
      def sendResponse(response: RequestChannel.Response) {
          if (isTraceEnabled) {
            val requestHeader = response.request.header
            trace(s"Sending ${requestHeader.apiKey} response to client ${requestHeader.clientId} of " + s"${response.responseSend.size} bytes.")
          }
      

      `responseSend` is of `scala.Option` type so it should be `response.responseSend.get.size`.

      Attachments

        Issue Links

          Activity

            People

              huxi_2b huxihx
              huxi_2b huxihx
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: