[ 
https://issues.apache.org/jira/browse/KAFKA-21610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18150095#comment-18150095
 ] 

Sean Quah edited comment on KAFKA-21610 at 11/24/26, 6:36 AM:
--------------------------------------------------------------

Hi [~sunm2n], the ticket can be picked up.

We shouldn't bypass the interval or cancel existing runs. If you wish to pick 
up the ticket, these questions need consideration:
# What if we skip the first empty assignment instead when a fresh group has no 
initialized partitions?
# What happens if we are initializing 100 partitions and the initializations 
come in slowly over time?
## Is there actually a difference in the total number of heartbeats needed when 
assignment batching and/or offloading are enabled?
# What happens if a new member joins an existing group with an extra topic 
subscription?
# Based on the answer to 1.1, does the premise of this ticket even make sense?
## If not, is there an alternative proposal that would improve the number of 
heartbeats until the group is fully stable?

We also should not split {{maybeUpdateTargetAssignment}}. We can check how 
streams groups handles starting an assignment once the initial rebalance delay 
has elapsed.


was (Author: JIRAUSER304653):
Hi [~sunm2n], the ticket can be picked up.

We shouldn't bypass the interval or cancel existing runs. If you wish to pick 
up the ticket, these questions need consideration:
# What happens if we are initializing 100 partitions and the initializations 
come in slowly over time?
## Is there actually a difference in the total number of heartbeats needed when 
assignment batching and/or offloading are enabled?
# What happens if a new member joins an existing group with an extra topic 
subscription?
# Based on the answer to 1.1, does the premise of this ticket even make sense?
## If not, is there an alternative proposal that would improve the number of 
heartbeats until the group is fully stable?

We also should not split {{maybeUpdateTargetAssignment}}. We can check how 
streams groups handles starting an assignment once the initial rebalance delay 
has elapsed.

> 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
>    Affects Versions: 4.5.0
>            Reporter: Sean Quah
>            Assignee: 이선민
>            Priority: Major
>
> 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.testAcknowledgementSentOnSubscriptionChange).
> 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