chia7712 commented on code in PR #19779:
URL: https://github.com/apache/kafka/pull/19779#discussion_r2106244199


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:
##########
@@ -443,7 +443,7 @@ public void transitionToFatal() {
         log.error("Member {} with epoch {} transitioned to fatal state", 
memberId, memberEpoch);
         notifyEpochChange(Optional.empty());
 
-        if (previousState == MemberState.UNSUBSCRIBED) {
+        if (previousState == MemberState.UNSUBSCRIBED && 
maybeCompleteLeaveInProgress()) {

Review Comment:
   I notice some different behavior between async and stream 
(https://github.com/apache/kafka/pull/18551/files#r2106243432). Maybe we can 
open a ticket to log it instead of changing it right now. This PR can fix the 
actual issue in Async consumer, WDYT?



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to