如果对更改历史的控制不充分,就会导致各种问题,比如当需要回滚“不适当的”更改时,就不能确定应该恢复到哪种状态。
Insufficient control over your change history can lead to issues such as lack of information to which the state can revert to, once a "bad" change needs to be rolled back.
首先,如果某个方法没有启动事务,那么它就不需要管理事务(例如,将其标记为回滚)。
First, if a method did not start a transaction, it has no business managing that transaction (for example, marking it for rollback).
对于MQ服务,当这个事务回滚时,这条消息就不会写入队列中。
For the MQ service, when the transaction was rolled back, the message was not committed to the queue.
应用推荐