[
https://issues.apache.org/jira/browse/KAFKA-21452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lianet Magrans updated KAFKA-21452:
-----------------------------------
Fix Version/s: 4.5.0
> Async consumer can invoke onPartitionsRevoked/Lost twice if assignment races
> with close/unsubscribe
> ----------------------------------------------------------------------------------------------------
>
> Key: KAFKA-21452
> URL: https://issues.apache.org/jira/browse/KAFKA-21452
> Project: Kafka
> Issue Type: Bug
> Components: clients
> Reporter: Lianet Magrans
> Assignee: Lianet Magrans
> Priority: Major
> Fix For: 4.5.0
>
>
> When partitions are being revoked, onPartitionsRevoked is called but the
> revoked partitions stay in the assignment until the event to update the
> assignment is triggered and processed (may be in a following poll).
> So if there is a call to close, unsubscribe, member fenced or a poll timeout
> (calls that release the assignment and trigger callbacks), the consumer will
> invoke onPartitionsRevoked/Lost again (including the same partitions passed
> to the first call of the callbacks).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)