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

RequestChannel.sendReponse records incorrect size for NetworkSend with TRACE logging

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0.1
    • Fix Version/s: 1.0.0
    • Component/s: core
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: