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

Chia-Ping Tsai commented on KAFKA-19300:
----------------------------------------

It seems the simple solution is to maybeCompleteLeaveInProgress even though the 
previous state is UNSUBSCRIBED. this solution is also applied on the 
success/failure path

> AsyncConsumer#unsubscribe always timeout due to GroupAuthorizationException
> ---------------------------------------------------------------------------
>
>                 Key: KAFKA-19300
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19300
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Major
>
> it can be reproduced by 
> GroupAuthorizerIntegrationTest.testConsumeUnsubscribeWithoutGroupPermission.
> The root cause is shown below.
> 1. AsyncConsumer#unsubscribe is executed
> 2. process(UnsubscribeEvent) changes the state to LEAVING
> 3. the state is changed to UNSUBSCRIBED in generating Heartbeat
> 4. the `LeaveInProgress` is skipped in transitionToFatal since the state is 
> UNSUBSCRIBED
> The behavior is inconsistent to classic consumer



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to