guozhangwang commented on a change in pull request #8816: URL: https://github.com/apache/kafka/pull/8816#discussion_r437795309
########## File path: core/src/main/scala/kafka/coordinator/group/GroupCoordinator.scala ########## @@ -1146,12 +1146,16 @@ class GroupCoordinator(val brokerId: Int, def onCompleteJoin(group: GroupMetadata): Unit = { group.inLock { - // remove dynamic members who haven't joined the group yet - group.notYetRejoinedMembers.filterNot(_.isStaticMember) foreach { failedMember => - removeHeartbeatForLeavingMember(group, failedMember) - group.remove(failedMember.memberId) - group.removeStaticMember(failedMember.groupInstanceId) Review comment: Nice catch. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org