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

Phuc Hong Tran commented on KAFKA-16493:
----------------------------------------

[~lianetm] I’ll come back to this ticket this weekend and will try to get a 
pull request asap. Sorry for the delay

> Avoid unneeded subscription regex check if metadata version unchanged
> ---------------------------------------------------------------------
>
>                 Key: KAFKA-16493
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16493
>             Project: Kafka
>          Issue Type: Task
>          Components: clients, consumer
>            Reporter: Lianet Magrans
>            Assignee: Phuc Hong Tran
>            Priority: Major
>              Labels: kip-848-client-support
>             Fix For: 3.8.0
>
>
> When using pattern subscription (java pattern), the new consumer regularly 
> checks if the list of topics that match the regex has changed. This is done 
> as part of the consumer poll loop, and it evaluates the regex using the 
> latest cluster metadata. As an improvement, we should avoid evaluating the 
> regex if the metadata version hasn't changed (similar to what the legacy 
> coordinator does 
> [here|https://github.com/apache/kafka/blob/f895ab5145077c5efa10a4a898628d901b01e2c2/clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java#L435C10-L435C41])



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

Reply via email to