当前位置:网站首页>Seata数据库中出现以下问题要怎么解决呀?
Seata数据库中出现以下问题要怎么解决呀?
2022-06-28 14:41:00 【阿里云问答】
Seata数据库中出现以下问题要怎么解决呀? Could not found global transaction xid = %s, may be has finished.
采纳答案1:
举例说明: @GlobalTransactional(timeout=60000) public void A(){ call remoting B();//远程调用B服务 local DB operation;
}
public void B(){
}
可能原因:
A 执行的总体时间超过了60000ms,导致全局事务发起了全局回滚,此时A或B方法继续执行DB操作,校验全局事务状态,发现全局事务已经回滚。 B服务执行超出其设定的readTimeout 返回异常给A并将异常抛出导致全局事务回滚,此时B服务执行DB操作时,校验全局事务状态,发现全局事务已经回滚。 影响:出现这种情况时,数据会整体回滚至A方法执行前的数据的初态,从数据一致性的视角上看,数据是整体一致的。 此答案整理自钉钉群“3群-Seata 开源讨论群”
边栏推荐
- [Zhongyi Xinsheng] 5 SPI interface test TF Card
- Tencent was underweight again by prosus, the major shareholder: the latter also cashed out $3.7 billion from JD
- js 判断字符串为空或者不为空
- 有效提高绩效面谈的10个关键点
- 线程终止的 4 种方式
- 运行近20年,基于Win 98的火星探测器软件迎来首次升级
- Validate palindrome string
- Rails进阶——框架理论认知与构建方案建设(一)
- open3d里pointcloud和numpy数组之间的转化
- 干货 | 科研人的KPI怎么算,H指数和G指数是什么
猜你喜欢
Based on asp Net based document retrieval system
Kwai investment e-commerce service provider Yixin optimization
Tencent was underweight again by prosus, the major shareholder: the latter also cashed out $3.7 billion from JD
【mysql学习笔记23】索引优化
After nearly 20 years of operation, the Mars probe software based on win 98 has been upgraded for the first time
智联招聘基于 Nebula Graph 的推荐实践分享
基于MATLAB的混沌数字图像加密技术研究与仿真实现
Recommended practice sharing of Zhilian recruitment based on Nebula graph
量子前沿英雄谱|“光量子探险家”McMahon:将任何物理系统变成神经网络
A bug liver a week I can't help mentioning issue
随机推荐
线程终止的 4 种方式
Unable to create process using 'd:\program file
荐书丨《大脑通信员》:如果爱情只是化学反应,那还能相信爱情吗?
Conversion between pointcloud and numpy arrays in open3d
The time schedule for the soft test in the second half of 2022 has been determined!
Recommendation letter brain correspondent: if love is just a chemical reaction, can you still believe in love?
ArcGIS vector center point generates rectangle and cuts TIF image for deep learning sample training
Single responsibility principle
线程的生命周期以及其中的方法
Leetcode (665) -- non decreasing column
Recommended practice sharing of Zhilian recruitment based on Nebula graph
What is the renewal fee for PMP certificate?
G: maximum flow problem
Robot range of motion (DFS)
What are the consequences of opening an account with Huatai Securities? How to open an account is the safest
技术弄潮儿
优巨新材冲刺深交所:拟募资6.5亿 年营收3.33亿
基于ASP的勤工俭学管理系统
2022金属非金属矿山安全检查(地下矿山)复训题库及在线模拟考试
【mysql学习笔记24】索引设计原则