Lianet Magrans created KAFKA-18729:
--------------------------------------

             Summary: Improve consumer check for assigned topics from regex
                 Key: KAFKA-18729
                 URL: https://issues.apache.org/jira/browse/KAFKA-18729
             Project: Kafka
          Issue Type: Improvement
          Components: consumer
            Reporter: Lianet Magrans
             Fix For: 4.1.0


When using subscriptions to broker-side regex RE2J, the consumer checks if a 
topic received in metadata is assigned in order to keep its info. At the 
moment, the consumer has no other way but to check the topic against the list 
of assigned topicPartitions (which is all that's available). 

We should consider improving the check to do it at the topic level, not 
topicPartition level . We would need to keep the set of assigned topics from 
RE2J regex in the subscription state, updated as assignments as reconciled and 
partitions are add/removed. Then we could rely on this topic set for the check 
(not all the assigned topicPartitions set)  



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

Reply via email to