Giter Site home page Giter Site logo

Comments (6)

funky-eyes avatar funky-eyes commented on September 24, 2024

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.

funky-eyes avatar funky-eyes commented on September 24, 2024

而且你的版本应该不是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.

Foreach1997 avatar Foreach1997 commented on September 24, 2024

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.

Foreach1997 avatar Foreach1997 commented on September 24, 2024

而且你的版本应该不是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.

funky-eyes avatar funky-eyes commented on September 24, 2024

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.

funky-eyes avatar funky-eyes commented on September 24, 2024

而且你的版本应该不是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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.