showuon commented on a change in pull request #10794: URL: https://github.com/apache/kafka/pull/10794#discussion_r667293513
########## File path: clients/src/main/java/org/apache/kafka/common/requests/ApiError.java ########## @@ -36,10 +38,21 @@ private final String message; public static ApiError fromThrowable(Throwable t) { + Throwable throwableToBeEncoded = t; + // Get the original cause from `CompletionException` and `ExecutionException`, otherwise, it will return unexpected UNKNOWN_SERVER_ERROR. Review comment: Thanks for the suggestion! Updated. -- 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-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org