dajac commented on code in PR #22473:
URL: https://github.com/apache/kafka/pull/22473#discussion_r3357114551
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:
##########
@@ -4262,8 +4262,13 @@ private
CoordinatorResult<ConsumerGroupHeartbeatResponseData, CoordinatorRecord>
// We will write a member epoch of -2 for this departing static member.
// Assignment epochs are reset to 0 so when the static member rejoins,
partitions
// are considered assigned from epoch 0 to the new member ID.
+ MemberState nextState = member.state() ==
MemberState.UNREVOKED_PARTITIONS ?
+ MemberState.STABLE :
Review Comment:
Transitionning to STABLE may not be correct here as the member may be
waiting on partitions. We could check this here. Otherwise, we could try to run
the CurrentAssignmentBuilder to advance the state machine here. I need to think
a bit more about it.
--
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]