You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/09/07 02:56:56 UTC
[GitHub] [rocketmq] caigy opened a new issue, #5012: Support escaping transactional messages in slave-acting-master mode
caigy opened a new issue, #5012:
URL: https://github.com/apache/rocketmq/issues/5012
**FEATURE REQUEST**
In [RIP-32](https://github.com/apache/rocketmq/wiki/RIP-32-Slave-Acting-Master-Mode), Slave Acting Master Mode is supported and the escape of the transactional messages need to be supported.
Below is a simple implementation of escaping transactional messages:
If a slave node is acting as master,
- EndTransaction requests (including commit and rollback) are denied.
- When checking status of half messages, escape half messages to an available master directly, without checking transaction status actually. There is a small trick: If a half message is sent to a local master, just append it to half topic; if sent to a remote master, the half message should be restored to original real message, because sending messages to a system topic is forbidden.
This implemetation keeps read-only sematics of slaves, so that no new half messages or op messages will be created in slave acting as master, all actual checking processes of half messages are delivered to master.
Previously there are several proposals, such as #4427, #4477, etc. They do provide good references and I truly appreciate the authors.
--
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: dev-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] RongtongJin closed issue #5012: Support escaping transactional messages in slave-acting-master mode
Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #5012: Support escaping transactional messages in slave-acting-master mode
URL: https://github.com/apache/rocketmq/issues/5012
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org