squah-confluent commented on code in PR #24319:
URL: https://github.com/apache/kafka/pull/24319#discussion_r4652472900
##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/ShareConsumerCallbackTest.java:
##########
@@ -93,10 +93,15 @@ public void testAcknowledgementSentOnSubscriptionChange()
throws ExecutionExcept
assertEquals(Optional.of(15000),
shareConsumer.acquisitionLockTimeoutMs());
// Waiting for heartbeat to propagate the subscription change.
+ // In the worst case this can take more than 15 seconds:
+ // Heartbeat 1 at +5 seconds sends the updated subscription and
triggers an assignor run.
+ // topic2 is not yet ready, so the assignor returns an empty
assignment.
+ // Heartbeat 2 at +10 seconds triggers another assignor run now
that topic2 is assignable.
+ // Heartbeat 3 at +15 seconds receives the assignment with
topic2.
Review Comment:
That's a good idea. Filed as
https://issues.apache.org/jira/browse/KAFKA-21610
--
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]