apache / apache/incubator-seata-samples

shardingsphere-jdbc dubbo jpa 用了分表和读写分离 分布式事务 提交失败

Open
#443 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

seata 版本是 0.9.0
org.apache.shardingsphere 版本是 4.1.1

有两个微服务order 和 user 都用了shardingsphere-jdbc。
order服务用了 分表。user服务用了读写分离。
order 通过dubbo调用 user,但user 的事物提交失败。user注册了分支事物,但是最后也进行了全局事务的提交,user应该是不会出现全局事务才对的
![image](https://user-images.githubusercontent.com/34827939/124857255-87dbe100-dfde-11eb-9354-a77b21b8dcce.png)
![Image_20210708112415](https://user-images.githubusercontent.com/34827939/124857529-09337380-dfdf-11eb-93bf-7111c493c86f.png)
![image](https://user-images.githubusercontent.com/34827939/124858210-36ccec80-dfe0-11eb-8625-b82e22ff2fb0.png)
![image](https://user-images.githubusercontent.com/34827939/124858302-5bc15f80-dfe0-11eb-92b7-1801e68aec64.png)
![image](https://user-images.githubusercontent.com/34827939/124858360-798ec480-dfe0-11eb-9a73-e042c65f030a.png)
![image](https://user-images.githubusercontent.com/34827939/124858408-91fedf00-dfe0-11eb-80d2-66727c4ec663.png)
![image](https://user-images.githubusercontent.com/34827939/124858436-9f1bce00-dfe0-11eb-9c52-9f55073e384e.png)

Contributor guide

Open the contributing guide

Research direction

No source files or tests are identified. Start by reproducing the two-service order/user flow with Seata 0.9.0 and Apache ShardingSphere 4.1.1, focusing on the Dubbo call and transaction logs. Done means the cause of the user transaction commit failure is identified and the expected global-transaction behavior is demonstrated or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.