[ 
https://issues.apache.org/jira/browse/KAFKA-9278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16989702#comment-16989702
 ] 

ASF GitHub Bot commented on KAFKA-9278:
---------------------------------------

qinghui-xu commented on pull request #7788: KAFKA-9278: Remove static exception 
instance
URL: https://github.com/apache/kafka/pull/7788
 
 
   Static exception instances are showing irrelevant stacktrace which
   makes troubleshooting difficult.
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Avoid using static instance of DisconnectException
> --------------------------------------------------
>
>                 Key: KAFKA-9278
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9278
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Qinghui Xu
>            Priority: Major
>
> For every `java.lang.Throwable` instance, there is a stacktrace provided 
> during its instantiation. Thus a static instance of DisconnectException 
> contains a stacktrace of the thread creating it, which is irrelevant (and 
> misleading) for all the calls (in other threads) that reuse it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to