yuluo-yx opened a new issue, #10853: URL: https://github.com/apache/rocketmq/issues/10853
### Description The auto-switch HA server indexes HAConnectionState.values directly with the state ordinal read from the peer. An unknown ordinal throws ArrayIndexOutOfBoundsException in the read path. The HA client has the same unsafe lookup while reporting a mismatched master state. ### Expected behavior Decode ordinals through a bounds-checked helper. Reject an unknown slave state and log an unknown master state without throwing from enum array access. -- 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]
