GitHub user vincent50411 added a comment to the discussion: 同一条记录多次修改分支回滚时执行顺序异常导致update time不一致出现脏写回滚失败
问题已经找到,生产环境版本用的是seata server 2.0.0版本,DefaultCore中的doGlobalRollback方法内查询branch session队列未做逆序处理:List<BranchSession> branchSessions = globalSession.getSortedBranches(); 导致同一条记录多次修改后的分支回滚顺序是按照branch table表中的gmt create做asc排序的,即最早注册的分支事务最早回滚,出现了和当前最新记录比对时的字段不一致问题。2.2.0版本中已经处理了逆序。感谢 GitHub link: https://github.com/apache/incubator-seata/discussions/7866#discussioncomment-15267530 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
