yuluo-yx opened a new pull request, #10858: URL: https://github.com/apache/rocketmq/pull/10858
### Which Issue(s) This PR Fixes - Fixes #10853 ### Brief Description Adds bounds-checked HA state decoding. The server rejects unknown slave state ordinals and the client logs mismatched unknown master states without indexing outside the enum array. Adds boundary tests for state decoding. ### How Did You Test This Change? `mise x java@temurin-17 -- mvn -Dmaven.repo.local=/private/tmp/rocketmq-m2 -pl store -am -DskipITs -Dtest=HAConnectionStateTest -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]
