nileshkumar3 commented on code in PR #22035:
URL: https://github.com/apache/kafka/pull/22035#discussion_r3385422270


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkThread.java:
##########
@@ -268,6 +268,10 @@ private void processApplicationEvents() {
                 applicationEventProcessor.process(event);
             } catch (Throwable t) {
                 log.warn("Error processing event {}", t.getMessage(), t);
+                if (event instanceof CompletableEvent) {
+                    ((CompletableEvent<?>) 
event).future().completeExceptionally(
+                        ConsumerUtils.maybeWrapAsKafkaException(t));

Review Comment:
   Agree that `maybeWrapAsKafkaException` is redundant here.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to