jolshan opened a new pull request #11004:
URL: https://github.com/apache/kafka/pull/11004


   Trunk version of https://github.com/apache/kafka/pull/10952
   
   This PR slightly cleans up some of the changes made in 
https://github.com/apache/kafka/pull/9944
   
   Store topic ID info in consumer metadata. We will always take the topic ID 
from the latest metadata response and remove any topic IDs from the cache if 
the metadata response did not return a topic ID for the topic.
   
   With the addition of topic IDs, when we encounter a new topic ID (recreated 
topic) we can choose to get the topic's metadata even if the epoch is lower 
than the deleted topic.
   
   The idea is that when we update from no topic IDs to using topic IDs, we 
will not count the topic as new (It could be the same topic but with a new ID). 
We will only take the update if the topic ID changed.
   
   Added tests for this scenario as well as some tests for storing the topic 
IDs. Also added tests for topic IDs in metadata cache.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to