dajac commented on PR #17634: URL: https://github.com/apache/kafka/pull/17634#issuecomment-2447212630
> Out of curiosity, if I recall correctly, Google's RE2 is not fully compatible with Java regex. Could this cause issues if the `Consumer` accepts Java `Pattern`, allowing users to use unsupported regex features? That's right. `Pattern` will keep working on the client side via the existing `subscribe(Pattern)` api. We will deprecate it at some point. The server side one will be used via `subscribe(SubscriptionPattern)`. `SubscriptionPattern` is defined [here](https://cwiki.apache.org/confluence/display/KAFKA/KIP-848%3A+The+Next+Generation+of+the+Consumer+Rebalance+Protocol#KIP848:TheNextGenerationoftheConsumerRebalanceProtocol-NewSubscriptionPatternclass). This avoids the compatibility issue but users will have to migrate from the old one to the new one. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
