stevecoots opened a new pull request, #11554: URL: https://github.com/apache/rocketmq/pull/11554
### Which Issue(s) This PR Fixes - Fixes #11552 ### Brief Description Add regression tests for transaction flag handling in `MessageSysFlag` in the `common` module. The tests verify that all four transaction types are read correctly, that replacing a transaction type clears the previous transaction bits, and that resetting to `TRANSACTION_NOT_TYPE` clears the transaction bits. They also verify that replacing or clearing the transaction type preserves unrelated message flags. ### How Did You Test This Change? Ran `MessageSysFlagTest`, `TopicSysFlagTest`, and `SubscriptionSysFlagTest` successfully with Maven: ```powershell mvn -B -pl common -am '-Dtest=MessageSysFlagTest,TopicSysFlagTest,SubscriptionSysFlagTest' '-Dsurefire.failIfNoSpecifiedTests=false' test ``` -- 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]
