Comments (5)
@momoangu 看错误提示,你需要配置TransactionRepository,可以参考使用指南里“设置TransactionRepository” https://github.com/changmingxie/tcc-transaction/wiki/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97
from tcc-transaction.
@changmingxie 非常感谢!按照参考指南的配了,目前项目可以跑起来,但有点状况:问题现象跟#3
提到的一样,也是订单始终是PAYING状态,我按帖子里面的解决方案试了,无效,同样的confirm没调用;另外:当我把payer方的红包金额改为5的时候,按道理失败;账户不会变动;结果却是payer的红包账户金额变为15了。其他跟进测试中...
from tcc-transaction.
@changmingxie 目前遇到新问题了,请帮忙分析。类似order的例子在我的项目中 在支付方 资金账户余额足够但红包账户余额不足的情况下;红包账户调用了cancelMethod 而资金账户却没有调用cancelMethod; 跟踪了一下,发现是调用顺序不是按
t1: order try make payment called
t4:order confirm make payment called
capital项目:
t2:capital try record called
t5:capital confirm record called
redpacket项目:
t3:red packet try record called
t6:red packet confirm record called
这个模式来的(当然你这里没有列出支付异常的情况)
我这里有两个账户金额如上所述异常的情况下调用顺序是这样的:
capital try record called
capital confirm record called
red packet try record called
red packet cancel record called
如上 capital 没有到cancelMethod里面去; 请帮忙分析分析原因在哪?
from tcc-transaction.
@momoangu 如果进入confirm状态 是不会调用cancel方法的。 可以运行示例项目看看。
from tcc-transaction.
@changmingxie 谢谢!整个流程终于通过了; order照搬到我的项目中, 通过,挺好。接下来消化整理,再次感谢。
from tcc-transaction.
Related Issues (20)
- tcc-transaction没看到有与springboot和springcloud生态整合的说明,是不支持吗? HOT 2
- tcc版本1.2.12,duobbo版本2.7.0,主事务到分支事务xid传参错误问题 HOT 6
- 红包金额表和红包订单表都在一个数据库里面,为什么要用分布式事务呢?直接用 spring 支持的@transactional 不行吗? HOT 2
- tcc-http-sample 样例演示购买超链接 抛异常 java.net.SocketTimeoutException: Read timed out HOT 1
- why TradeOrderServiceProxy.record need @Compensable ? HOT 1
- sample中dubbo方式数据库问题 HOT 1
- tcc-transaction分布式事务管理器操作文档 HOT 1
- 如何避免tcc try阶段业务并发重复调用 HOT 2
- 是否支持防悬挂控制 HOT 4
- tcc-transaction 与Dubbo整合后,三层事务方法,底层服务无法confirm或cancel的问题 HOT 3
- 无,看错
- 作者牛逼 HOT 1
- 谁在使用tcc-transaction HOT 1
- 请问如何防止脏读和脏写? HOT 1
- 客户端无法注册naocs HOT 1
- Dependency org.yaml:snakeyaml, leading to CVE problem HOT 1
- JdbcTransactionStorage 关键字 DOMAIN HOT 1
- 框架调用从业务补偿方法时spring注入类丢失问题 HOT 6
- tcc-transaction-server找不到下载地址 HOT 1
- 不支持dubbo3提供的triple协议(grpc)
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 tcc-transaction.