waterWang opened a new pull request, #10902: URL: https://github.com/apache/rocketmq/pull/10902
## What `ClientProcessor.validateLiteSubTopic` now validates every subscription in the set against the group's bound topic, not just the first element. ## Why `ClientProcessor.validateLiteSubTopic` called `subList.iterator().next().getTopic()`, which only checks the first element of the subscription set. A Lite consumer group with a configured `liteBindTopic` could include a second subscription for a different topic without being rejected. ## How - Changed the single-element check to a `for` loop over all elements - Added `testValidateLiteSubTopic_mismatchedSecondTopic_throwsException` to verify that a mismatching second subscription triggers `ILLEGAL_TOPIC` Fixes #10895 -- 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]
