[ https://issues.apache.org/jira/browse/KAFKA-19899 ]


    Anton Vasanth deleted comment on KAFKA-19899:
    ---------------------------------------

was (Author: JIRAUSER311269):
Thank you [~dongnuolyu], 

Just to clarify - when you say "member regex subscription changes from non 
empty to empty", do you mean: 
 # The member's regex text itself changes from something like "topic.*" to 
empty/null (OR)

 # The number of members subscribed to a particular regex drops to zero (last 
member unsubscribes)

(also case 1 can lead to case 2 right)

> Bumping group epoch when member regex subscription changes from non empty to 
> empty
> ----------------------------------------------------------------------------------
>
>                 Key: KAFKA-19899
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19899
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Dongnuo Lyu
>            Assignee: Anton Vasanth
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> In `GroupMetadataManager#maybeUpdateRegularExpressions`, 
> `updateRegularExpressionsResult` is set to REGEX_UPDATED if the updated 
> member regex subscription is empty and the current member's is not empty, 
> which [doesn't trigger a group epoch 
> bump|https://github.com/apache/kafka/blob/trunk/group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java#L2376-L2386]
>  later in `consumerGroupHeartbeat`.
> We should fix it by returning REGEX_UPDATED_AND_RESOLVED in this case.



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

Reply via email to