You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Vikas Singh (Jira)" <ji...@apache.org> on 2021/11/03 21:46:00 UTC

[jira] [Created] (KAFKA-13432) ApiException should provide a way to capture stacktrace

Vikas Singh created KAFKA-13432:
-----------------------------------

             Summary: ApiException should provide a way to capture stacktrace
                 Key: KAFKA-13432
                 URL: https://issues.apache.org/jira/browse/KAFKA-13432
             Project: Kafka
          Issue Type: Improvement
          Components: core
            Reporter: Vikas Singh


ApiException doesn't fill in the stacktrace, it overrides `fillInStacktrace` to make it a no-op, here is the code: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/errors/ApiException.java#L45,L49

However, there are times when full stacktrace will be helpful in finding out what went wrong on the client side. We should provide a way to make this behavior configurable, so that if an error is hit multiple times, we can switch the behavior and find out what code is causing it.



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