You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Lianet Magrans (Jira)" <ji...@apache.org> on 2025/05/15 19:37:00 UTC
[jira] [Created] (KAFKA-19288) Ensure new consumer joining attempt not overwritten on delayed HB response to previous leave
Lianet Magrans created KAFKA-19288:
--------------------------------------
Summary: Ensure new consumer joining attempt not overwritten on delayed HB response to previous leave
Key: KAFKA-19288
URL: https://issues.apache.org/jira/browse/KAFKA-19288
Project: Kafka
Issue Type: Bug
Components: clients, consumer
Reporter: Lianet Magrans
Assignee: Lianet Magrans
Fix For: 4.1.0
For the asyn consumer, check and cover edge case where the consumer may transition to JOINING, but receive a delayed response to a previous leave request. We should ensure that the response is ignored and the consumer joins as it intended.
I expect this doesn't usually happens given that the unsubscribe is a blocking operation, so the consumer won't be able to join until the unsubscribe completes. But if the leave request doesn't get a response in time (unsubscribes fails quietly), and the response arrives after it, I expect the joining could be overwritten (member updating it's joining epoch 0 to the -1 epoch received in the response)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)