philipnee commented on PR #14746: URL: https://github.com/apache/kafka/pull/14746#issuecomment-1810851585
Hi @cadonna - When the consumer is woken up. The WakeupTrigger should complete the future exceptionally with WakeupException. To rethrow that exception during future.get(), you will need to examine the ExecutionException kind of like this: ``` catch (ExecutionException e) { Throwable t = e.getCause(); if (t instanceof WakeupException) throw new WakeupException(); else if (t instanceof KafkaException) throw (KafkaException) t; else throw new KafkaException(t); ``` -- 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