Comments (5)
为什么远程成功了,还会有远程造成的错误? 不应该去解决这个问题吗?
from myth.
我改一下吧。之前就不会考虑到这种情况
from myth.
这个问题是并发测试出现的:
1、远程服务执行是成功的;
2、远程服务返回后,偶发性转换异常(class cast exception),导致发起方事务回滚了;
3、最终结果就是数据不一致且无法补偿,发起方事务回滚、发起方事务日志状态commit、远程事务成功(也是commit);
4、这个偶发性转换异常目前我还没查出原因,但是事务框架对这种情况应该有对应的处理方案,事务日志不应该是“第3点”中的结果;
from myth.
1.首先你要解决偶尔性的转换异常。
2.myth设计的时候,考虑的是,本地服务是成功的情况下,发送消息的成功,而不是整个切面的成功。
3.设想,如果你 的远程rpc已经执行成功了,然后随便抛一个异常,造成发起者不成功?应该怎么处理,继续执行一遍? 如果是,那么业务方就要保证接口的幂等。
4 myth的设计就是在够成功调用到你的rpc服务
from myth.
1、正在排查那个诡异的偶发问题;
2、目前我这边出现的就是像您所说的第三点的设想,您有什么好的建议不,目前比较纠结这个问题;
from myth.
Related Issues (20)
- demo工程下单业务中,保存订单信息和记录事务日志信息不在同一个库,数据一致性是如何考虑的
- 关于事务落库后,业务操作失败的情况怎么处理?
- 在参与者失败的时候如何通知到发起者? HOT 1
- 提供者报未知异常,消息消费端不能set重试次数,会报npe HOT 4
- 如果消息压根就没有发出去怎么保证一致性 HOT 29
- spring cloud kafka一直扣用户余额 HOT 2
- 请教一个问题,是不是不建议用kafka作为消息队列
- 请问可以修改成只使用spring 配置文件么 HOT 1
- demo-springcloud 缺少http-core jar HOT 1
- 持有过多的数据库连接不释放,导致数据库连接错误 HOT 3
- 最新的项目下载后,配置后,试着dead掉一些项目,无恢复功能 HOT 1
- 当扣除余额的操作未发生异常,而减库存操作发生了异常时,扣除余额的数据库操作正常进行提交,并不会回滚。 HOT 1
- 我提一个比较少见的情况,微服务之间互相调用,是否支持分布式事务
- 新建项目 恢复服务报错 No qualifying bean of type 'xxx.xxx' available HOT 4
- 适配一下最新的spring-amqp、spring-rabbit版本 最新版的部分类已经转义到其他package中 HOT 1
- 接收mq消息重试时,SpringCloudMythTransactionInterceptor 拦截器 异常 HOT 3
- 是否支持 “异步的分布式系统” 的事务控制?
- “NoSuchMethodErrors” due to multiple versions of org.slf4j:slf4j-api:jar HOT 4
- myth文档的迁移到官网和翻译 HOT 1
- my-springcloud依赖servlet有问题
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 myth.