Lianet Magrans created KAFKA-16493: -------------------------------------- Summary: 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
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)