abbccdda commented on a change in pull request #9084: URL: https://github.com/apache/kafka/pull/9084#discussion_r460671888
########## File path: clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java ########## @@ -728,7 +728,11 @@ protected void onJoinPrepare(int generation, String memberId) { subscriptions.resetGroupSubscription(); if (exception != null) { - throw new KafkaException("User rebalance callback throws an error", exception); + if (exception instanceof KafkaException) { + throw (KafkaException) exception; Review comment: Why do we need this cast? ---------------------------------------------------------------- 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