Comments (6)
AT模式一阶段已经提交了事务结果,二阶段只需要删除undolog就可以了,undolog删除失败并不影响事务结果,所以并不应该由于undolog删除失败(你替换了数据源,该节点下找不到datasource进行删除undolog),而将不影响业务的且已经决议提交的事务再次进行回滚。
In AT mode, the first phase has already submitted the transaction result, and the second phase only needs to delete the undolog. The failure to delete the undolog does not affect the transaction result. Therefore, the transaction, which has been decided and committed, should not be rolled back again just because the undolog deletion failed (you replaced the data source, and the datasource cannot be found under this node to delete the undolog)
from incubator-seata.
而且你的版本应该不是1.5.2及以上版本,因为1.5.2开始负载均衡由xid上的serverip所决定,而下发到了b节点而不是a节点,说明决议的server跟创建事务begin时的server不是同一个。
And your version is probably not 1.5.2 or above, because starting from 1.5.2, load balancing is determined by the server ip on the xid. Sending it to node B instead of node A indicates that the server responsible for resolution is not the same as the one when the transaction was created with begin
from incubator-seata.
AT模式一阶段已经提交了事务结果,二阶段只需要删除undolog就可以了,undolog删除失败并不影响事务结果,所以并不应该由于undolog删除失败(你替换了数据源,该节点下找不到datasource进行删除undolog),而将不影响业务的且已经决议提交的事务再次进行回滚。 In AT mode, the first phase has already submitted the transaction result, and the second phase only needs to delete the undolog. The failure to delete the undolog does not affect the transaction result. Therefore, the transaction, which has been decided and committed, should not be rolled back again just because the undolog deletion failed (you replaced the data source, and the datasource cannot be found under this node to delete the undolog)
如果这样不就可能会导致不知道当前事务是否正确的进行提交了吗?
from incubator-seata.
而且你的版本应该不是1.5.2及以上版本,因为1.5.2开始负载均衡由xid上的serverip所决定,而下发到了b节点而不是a节点,说明决议的server跟创建事务begin时的server不是同一个。 And your version is probably not 1.5.2 or above, because starting from 1.5.2, load balancing is determined by the server ip on the xid. Sending it to node B instead of node A indicates that the server responsible for resolution is not the same as the one when the transaction was created with begin
1.5.2以上版本的话 ,容器a开启的全局事务最终会在容器a上进行提交吗
from incubator-seata.
AT模式一阶段已经提交了事务结果,二阶段只需要删除undolog就可以了,undolog删除失败并不影响事务结果,所以并不应该由于undolog删除失败(你替换了数据源,该节点下找不到datasource进行删除undolog),而将不影响业务的且已经决议提交的事务再次进行回滚。 In AT mode, the first phase has already submitted the transaction result, and the second phase only needs to delete the undolog. The failure to delete the undolog does not affect the transaction result. Therefore, the transaction, which has been decided and committed, should not be rolled back again just because the undolog deletion failed (you replaced the data source, and the datasource cannot be found under this node to delete the undolog)
如果这样不就可能会导致不知道当前事务是否正确的进行提交了吗?
哪里导致了不知道是否正确的提交?一阶段已经提交了,二阶段只是删个undolog跟事务结果没有任何影响
Where does the uncertainty about whether the submission is correct arise from? The first phase has already been submitted, and the second phase is just deleting an undolog, which has no impact on the transaction result.
from incubator-seata.
而且你的版本应该不是1.5.2及以上版本,因为1.5.2开始负载均衡由xid上的serverip所决定,而下发到了b节点而不是a节点,说明决议的server跟创建事务begin时的server不是同一个。 And your version is probably not 1.5.2 or above, because starting from 1.5.2, load balancing is determined by the server ip on the xid. Sending it to node B instead of node A indicates that the server responsible for resolution is not the same as the one when the transaction was created with begin
1.5.2以上版本的话 ,容器a开启的全局事务最终会在容器a上进行提交吗
谁在一阶段注册的分支事务,谁进行二阶段处理,如果这个节点在二阶段时不存在才会选择其他节点
Who registers the branch transaction in the first phase, who performs the second phase processing, and only if this node does not exist during the second phase will another node be selected.
from incubator-seata.
Related Issues (20)
- TCC mode two stage cannot be executed
- Source code depends on the git environment
- The module dependent on 'compatible' has not been correctly referenced.
- 源码少文件 HOT 1
- The distribute lock table is not config, please create the target table and config it HOT 6
- OceanBase数据库的mysql模式下创建的表,多主键,seata回滚失败,seata不支持多主键的表回滚吗? HOT 3
- 使用 2.0.0 版本并且使用root用户操作会无法启动的问题。 HOT 1
- v2.0.0版本,使用redis作为store时,无法连接redis HOT 1
- Why use @Async in ClusterWatcherManager
- k8s部署seata HOT 9
- 请问 2.1.0 什么时候发啊 等的花都要谢了 端午节前还有希望么 HOT 2
- seata 2.x是否支持数据库密码加密功能? HOT 2
- OceanBase数据库mysql模式,无法回滚
- 对于Oracle数据库中含有Timestamp字段的数据表无法进行二段校验 HOT 3
- druid连接池配置参数放开test-on-borrow HOT 2
- 0101 can not connect to 10.233.65.126:8091 cause:can not register RM,err:can not connect to services-server. HOT 2
- saga exception: java.lang.NullPointerException: Cannot invoke "io.seata.saga.engine.StateMachineEngine.forward(String, java.util.Map)" HOT 1
- mybatis调用Oracle存储过程开启事务报错 HOT 3
- 同一个服务中 两个被@TwoPhaseBusinessAction修饰的方法,方法A调用方法B,方法B对应的commitMethod,rollbackMethod未生效 HOT 1
- 手动回滚之后还会去触发commitTransaction方法? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-seata.