apache / apache/incubator-seata-samples
GlobalTransactional 无法正常起作用
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
框架:
微服务:spring cloud(version: Greenwich.SR2) + spring boot(version: 2.1.6.RELEASE) + euraka + mybatis(mybatis-spring-boot-starter version: 2.0.0)
seata: euraka + db,版本:com.alibaba.cloud:spring-cloud-alibaba-seata:2.1.0.RELEASE + io.seata:seata-all:1.3.0
问题:
在非启动moudle中使用@GlobalTransactional是没有作用的,seata server的console或global_table都没有相应的记录。例如启动module是host module,其依赖了另外一个module,如biz module,那么在biz module中使用@GlobalTransactional是不起作用的。
但是在host module中使用@GlobalTransactional是有没有问题的,通过seata server的console或global_table表都能看到相应的记录。如某个controller的method中使用@GlobalTransactional是可以正常工作的。
是需要类似于像查找项目中所有component那样,在ComponentScan中指定所需要查找的component package吗?
Contributor guide
Research direction
No source file or test is named. Start by reproducing the difference between @GlobalTransactional on a host-module controller and in the dependent biz module, then inspect component scanning and compare the Seata console or global_table records; done means the biz-module annotation creates the expected global transaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100