guozhangwang commented on code in PR #12337: URL: https://github.com/apache/kafka/pull/12337#discussion_r911523740
########## streams/src/main/java/org/apache/kafka/streams/processor/internals/ClientUtils.java: ########## @@ -110,6 +112,44 @@ public static Map<MetricName, Metric> producerMetrics(final Collection<StreamsPr return result; } + /** + * @throws StreamsException if the consumer throws an exception + * @throws org.apache.kafka.common.errors.TimeoutException if the request times out + */ + public static Map<TopicPartition, Long> fetchCommittedOffsets(final Set<TopicPartition> partitions, Review Comment: I just realized that for interrupted exception, we can just skip re-throwing and return empty, so that we will retry in the next run loop. -- 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