Details
Description
When using subscribe with a java regex (Pattern), we need to resolve it on the client side to send the broker a list of topic names to subscribe to.
Context:
The new consumer group protocol uses Google RE2/J for regular expressions and introduces new methods in the consumer API to subscribe using a `SubscribePattern`. The subscribe using a java `Pattern` will be still supported for a while but eventually removed.
- When the subscribe with SubscriptionPattern is used, the client should just send the regex to the broker and it will be resolved on the server side.
- In the case of the subscribe with Pattern, the regex should be resolved on the client side.
As part of this task, we should re-enable all integration tests defined in the PlainTextAsyncConsumer that relate to subscription with pattern and that are currently disabled for the new consumer + new protocol
Attachments
Issue Links
- is part of
-
KAFKA-14246 Update threading model for Consumer
- Resolved
- relates to
-
KAFKA-16493 Avoid unneeded subscription regex check if metadata version unchanged
- Patch Available
- links to