You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "David Jacot (Jira)" <ji...@apache.org> on 2020/09/25 15:55:00 UTC
[jira] [Created] (KAFKA-10528) Make output of AK various tools
consistent in case of errors
David Jacot created KAFKA-10528:
-----------------------------------
Summary: Make output of AK various tools consistent in case of errors
Key: KAFKA-10528
URL: https://issues.apache.org/jira/browse/KAFKA-10528
Project: Kafka
Issue Type: Improvement
Reporter: David Jacot
AK has various command line tools. I have noticed that they are not all consistent when it comes to how they treat and print out errors. Typically, the message of the exception is printed out followed by its stacktrace.
I have noticed couple of things:
* Sometimes the stacktrace is printed out using the logger in some tools or with println in others. Also, I wonder if providing the stacktrace to the users is a good idea at all as it gives the feeling that the tool did not work even though the error may be legitimate.
* Some tools unwrap ExecutionException to provide the message of the real cause to the user. Others don't.
* The handling of errors resulting from bad or wrong flags is also inconsistent in certain tools. We should review this and be consistent.
There may be other things to look after. I think that we should review all the tools and make them consistent.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)