lianetm commented on code in PR #17917:
URL: https://github.com/apache/kafka/pull/17917#discussion_r1854361930
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java:
##########
@@ -320,11 +320,12 @@ private void process(final
TopicPatternSubscriptionChangeEvent event) {
* This will make the consumer send the updated subscription on the next
poll.
*/
private void process(final UpdatePatternSubscriptionEvent event) {
+ if (!subscriptions.hasPatternSubscription()) {
Review Comment:
truly it's not needed with the current usage of this event from the app
thread. I just left it for extra protection in this thread really (ok to remove
it if we prefer)
--
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]