Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpringCloud 调用同一个service 提供的两个不同的Client hmliy_serviceName 数据被覆盖 #164

Closed
TarryHoo opened this issue Aug 28, 2020 · 5 comments

Comments

@TarryHoo
Copy link

SpringCloud 两个服务, 调用者调用Resource-server 的AClient 和BClient. 如图
image
分布式事务是在调用者和Resource-server 两个服务之间.
当TCC开始生效时, Hmily_RESOURCE_SERVER 里需要生成两条数据,分别是AClient 和BClient 的.
由于是同一个tx_id, 将导致主键冲突,hmily_RESOURCE_SERVER中无相关method 的方法. 事务失效

@TarryHoo
Copy link
Author

TarryHoo commented Aug 28, 2020

2.0.6,已经不支持这种场景,最新的版本尚未发布
谢谢大佬回复
是分布式事务场景, 206已经不支持分布式事务了??? 低版本现在有支持的么? 还是最新版本可以支持, 最新版本大概什么时候推出

@yu199195
Copy link
Member

这是分布式事务场景吗

@yu199195
Copy link
Member

2.0.6 ,已经不支持这种场景,最新的版本还未发布

@TarryHoo
Copy link
Author

2.0.6 ,已经不支持这种场景,最新的版本还未发布

能否告知下,这种场景有什么问题嘛, 感觉这种场景应该很常见的吧. 下午翻了下代码,支持这种场景并不算困难.

@yu199195
Copy link
Member

aclient bclient 属于 2个不同的微服务就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants