Sean Quah created KAFKA-21610:
---------------------------------

             Summary: Consider scheduling the share group assignor when share 
partitions are initialized
                 Key: KAFKA-21610
                 URL: https://issues.apache.org/jira/browse/KAFKA-21610
             Project: Kafka
          Issue Type: Improvement
          Components: group-coordinator
            Reporter: Sean Quah


With assignor offloading on, a new share group's first assignor run is 
scheduled before its share partitions are initialized, so that run assigns 
nothing. The partitions are only assigned after the next heartbeat bumps the 
group epoch and a second run completes. That costs members an extra heartbeat 
(see ShareConsumerCallbackTest).

Bump the group epoch and schedule the assignor run in initializeShareGroupState 
instead, so the second heartbeat already receives the assignment.

https://github.com/apache/kafka/pull/24319 will add a test scenario for this. 
Please wait until that PR has been merged before starting this work.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to