yuluo-yx opened a new pull request, #10854: URL: https://github.com/apache/rocketmq/pull/10854
### Which Issue(s) This PR Fixes - Fixes #10849 ### Brief Description Replaces narrowing subtraction in both static-topic epoch comparators with Long.compare. Adds a regression test proving that replacement mode selects the mapping with the latest epoch across the full long range. ### How Did You Test This Change? `mise x java@temurin-17 -- mvn -Dmaven.repo.local=/private/tmp/rocketmq-m2 -pl remoting -am -DskipITs -Dtest=TopicQueueMappingUtilsTest -Dsurefire.failIfNoSpecifiedTests=false test` The targeted tests, Checkstyle, and SpotBugs completed successfully. -- 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]
