Comments (4)
我今天也测试了你这种情况A-B-C,发现C成为了发起者而不是参与者,是因为在远程调用时事务组的id没有传递到C,导致C成为了发起者,没有传递的原因经过查看代码觉得是RestTemplateInterceptor在设置header时和执行远程调用不在同一个线程导致的。经过测试,在参与者handler中执行proceed方法之前将txGroupId设置到TxTransactionLocal中就可以解决了,希望作者能够确认是不是这个问题
from raincat.
@lijianandwujie 请问具体怎么修改,能粘贴上具体修改的代码或步骤吗?
from raincat.
我认为目前的框架不支持a-b-c的事务,仅支持a-b a-c的事务。若需要改造成支持a-b-c事务,我的简单想法是在事务参与者ActorTxTransactionHandler中将txGroupId放到TxTransactionLocal里,完成txGroupId由b到c的传递。
from raincat.
嵌套调用关键在与事务组id的传递问题
from raincat.
Related Issues (20)
- 参与者handler中提交事务是若抛异常会导致数据不一致 HOT 2
- BlockTask 类问题 HOT 3
- 全局异常处理问题
- A服务service的aop 调用B服务,B服务报错,A服务会回滚吗 HOT 1
- raincat-admin 登录404 HOT 2
- 提一个边界性的问题 HOT 3
- tx-manager启动报错 HOT 1
- 事务参与者中RequestContextHolder.getRequestAttributes()为null HOT 1
- springCloud中的RestTemplateConfiguration自定义Feign.Builder拦截与开启hystrix冲突 HOT 1
- 用jmeter压测发现数据不一致的情况
- Raincat 支持多数据源吗?
- 如何使用集群 HOT 3
- 【bug】id生成策略问题 HOT 8
- 不支持选择指定的事务管理器。 HOT 6
- raincat-admin起到的作用
- 源码问题,TxManagerLocator中使用AtomicReference的问题。
- rancat 文档的翻译
- happylifeplat-transaction 与 happylifeplat-tcc 有什么区别?
- 一阶段超时问题 HOT 3
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 raincat.