MrKen20 opened a new pull request, #11616: URL: https://github.com/apache/rocketmq/pull/11616
### Which Issue(s) This PR Fixes Found while reviewing `DefaultLitePullConsumer`. ### Brief Description With a namespace configured, `assign`, `pause`, and `resume` rewrite the Topic on each caller-owned `MessageQueue`. The Topic contributes to the queue’s hash code, so a queue already stored in a `HashSet` can no longer be found. Wrap copies of the queues before passing them to the consumer implementation. ### How Did You Test This Change? - Added a regression test for each entry point. Before the fix, all three failed at the `HashSet.contains` assertion. After the fix, the caller can still find the original queue, and the internal queue is assigned, paused, or resumed with its namespaced Topic. - Ran `mvn -B -pl client -am -Dtest=DefaultLitePullConsumerTest,DefaultLitePullConsumerImplTest,ClientConfigTest -Dsurefire.failIfNoSpecifiedTests=false -Djacoco.skip=true test` on JDK 21. All 37 tests passed. Checkstyle and SpotBugs passed. -- 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]
