kirktrue commented on code in PR #14879: URL: https://github.com/apache/kafka/pull/14879#discussion_r1412683183
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java: ########## @@ -849,9 +953,22 @@ public OptionalLong currentLag(TopicPartition topicPartition) { } } + public void setGroupMetadata(final ConsumerGroupMetadata groupMetadata) { + this.groupMetadata = Optional.of(groupMetadata); + } + @Override public ConsumerGroupMetadata groupMetadata() { - throw new KafkaException("method not implemented"); + acquireAndEnsureOpen(); + try { + maybeThrowInvalidGroupIdException(); + backgroundEventProcessor.process(); Review Comment: I think we should leave it only in `poll()` for the time being, yes 😞 ########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java: ########## @@ -849,9 +953,22 @@ public OptionalLong currentLag(TopicPartition topicPartition) { } } + public void setGroupMetadata(final ConsumerGroupMetadata groupMetadata) { + this.groupMetadata = Optional.of(groupMetadata); + } + @Override public ConsumerGroupMetadata groupMetadata() { - throw new KafkaException("method not implemented"); + acquireAndEnsureOpen(); + try { + maybeThrowInvalidGroupIdException(); + backgroundEventProcessor.process(); Review Comment: I think we should leave it only in `poll()` for the time being, yes 😞 -- 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