You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/12/30 03:01:26 UTC

[GitHub] [kafka] dengziming commented on a diff in pull request #13050: MINOR: add error reason when controller failed to handle events

dengziming commented on code in PR #13050:
URL: https://github.com/apache/kafka/pull/13050#discussion_r1059223359


##########
metadata/src/main/java/org/apache/kafka/controller/QuorumController.java:
##########
@@ -432,8 +432,8 @@ private Throwable handleEventException(String name,
                                            OptionalLong startProcessingTimeNs,
                                            Throwable exception) {
         if (!startProcessingTimeNs.isPresent()) {
-            log.error("{}: unable to start processing because of {}.", name,
-                exception.getClass().getSimpleName());
+            log.error("{}: unable to start processing because of {}. Reason: {}", name,

Review Comment:
   We can directly add exception as last param, similar to what we do in line 452 and line 458.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org