GitHub user huxihx opened a pull request: https://github.com/apache/kafka/pull/3961
KAFKA-5976: RequestChannel.sendResponse should record correct size for NetworkSend. When TRACE logging is enabled, RequestChannel.sendResponse records incorrect size for `Send` due to the fact that `response.responseSend` is of scala.Option type. You can merge this pull request into a Git repository by running: $ git pull https://github.com/huxihx/kafka KAFKA-5976 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3961.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3961 ---- commit 210f8470f7da48da3c67b763e28c5855c6010e65 Author: huxihx <huxi...@hotmail.com> Date: 2017-09-26T09:09:43Z KAFKA-5976: RequestChannel.sendResponse should record correct size for NetworkSend. When TRACE logging is enabled, RequestChannel.sendResponse records incorrect size for `Send` due to the fact that `response.responseSend` is of scala.Option type. ---- ---