lytt925 commented on code in PR #24241:
URL: https://github.com/apache/kafka/pull/24241#discussion_r4583843199
##########
clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java:
##########
@@ -754,6 +754,28 @@ public void
shouldIgnoreGroupInstanceIdForEmptyGroupId(GroupProtocol groupProtoc
consumer = newConsumer(config, new ByteArrayDeserializer(), new
ByteArrayDeserializer());
}
+ @ParameterizedTest
+ @EnumSource(GroupProtocol.class)
+ public void testSetRebalanceListenerWithoutGroupId(GroupProtocol
groupProtocol) {
+ consumer = newConsumer(groupProtocol, null);
+
+ assertDoesNotThrow(() ->
consumer.setRebalanceListener(mock(RebalanceListener.class)));
Review Comment:
Thanks. I replaced the test with one that registers a listener on a consumer
without a `group.id`, assigns a partition manually, and verifies that the
records are still fetched and the listener is not invoked.
--
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]