kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject kafka git commit: HOTFIX: ClassCastException in Request error logging
Date Sat, 18 Feb 2017 18:05:11 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk dcea49856 -> d24d932ef


HOTFIX: ClassCastException in Request error logging

Fixed ClassCastException resulting from missing type hint in request logging.

Author: Armin Braun <me@obrown.io>

Reviewers: Jason Gustafson <jason@confluent.io>

Closes #2571 from original-brownbear/fix-logging-err-response


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/d24d932e
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/d24d932e
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/d24d932e

Branch: refs/heads/trunk
Commit: d24d932efb980b1fc15bb4dbba4d67d464e97ab3
Parents: dcea498
Author: Armin Braun <me@obrown.io>
Authored: Sat Feb 18 10:02:52 2017 -0800
Committer: Jason Gustafson <jason@confluent.io>
Committed: Sat Feb 18 10:04:40 2017 -0800

----------------------------------------------------------------------
 core/src/main/scala/kafka/server/KafkaApis.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/d24d932e/core/src/main/scala/kafka/server/KafkaApis.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/server/KafkaApis.scala b/core/src/main/scala/kafka/server/KafkaApis.scala
index c90cace..fa5afe5 100644
--- a/core/src/main/scala/kafka/server/KafkaApis.scala
+++ b/core/src/main/scala/kafka/server/KafkaApis.scala
@@ -117,7 +117,7 @@ class KafkaApis(val requestChannel: RequestChannel,
           else
             requestChannel.sendResponse(new Response(request, response))
 
-          error("Error when handling request %s".format(request.body), e)
+          error("Error when handling request %s".format(request.body[AbstractRequest]), e)
         }
     } finally
       request.apiLocalCompleteTimeMs = time.milliseconds


Mime
View raw message