apache / apache/incubator-seata

@GlobalTransactional 第一次commit成功后,再调用这个接口,就报错

Open
#2,865 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

三个服务 A->B->C
都加了@GlobalTransactional
业务逻辑均正常
第一次执行,能够正常commit
第二次开始,就提示错误
如果都不加@GlobalTransactional,三个服务写表均正常,无论提交次数多少
这是第一次执行成功后,三个服务的截图
![image](https://user-images.githubusercontent.com/23610636/86736201-eb4ad000-c065-11ea-8adc-75644a91aef6.png)
![image](https://user-images.githubusercontent.com/23610636/86736400-159c8d80-c066-11ea-958a-1caab62055e7.png)
![image](https://user-images.githubusercontent.com/23610636/86736428-1af9d800-c066-11ea-959a-2533e141e91c.png)
seata server 日志截图
![image](https://user-images.githubusercontent.com/23610636/86736663-48468600-c066-11ea-8758-02c192350b43.png)
==================================================================================
==================================================================================
第二次执行开始,在A服务就报错的截图
![image](https://user-images.githubusercontent.com/23610636/86736898-762bca80-c066-11ea-8bb9-b6e7bf925ca8.png)
![image](https://user-images.githubusercontent.com/23610636/86736934-7cba4200-c066-11ea-8cd9-2131c17bb701.png)

这是A服务SQL的截图
![image](https://user-images.githubusercontent.com/23610636/86737111-9a87a700-c066-11ea-974d-962019bfa38f.png)

这是seata server 日志截图
![image](https://user-images.githubusercontent.com/23610636/86737387-d589da80-c066-11ea-9fd9-808e589bffd0.png)
==================================================================================
==================================================================================
三个服务的seata client配置yml截图
![image](https://user-images.githubusercontent.com/23610636/86737242-b68b4880-c066-11ea-9cb8-0f27c91c23b6.png)

使用到的组件
seata server 1.2.0
![image](https://user-images.githubusercontent.com/23610636/86737895-34e7ea80-c067-11ea-9b65-3da63ec560b1.png)

nacos 1.2.1
![image](https://user-images.githubusercontent.com/23610636/86738253-809a9400-c067-11ea-8412-de4ebdbeb2f9.png)

mybatis-plus 3.3.2
![image](https://user-images.githubusercontent.com/23610636/86738413-a45dda00-c067-11ea-918f-1f149cf6422f.png)

openfeign+okhttp
![image](https://user-images.githubusercontent.com/23610636/86738159-6bbe0080-c067-11ea-81c8-4a3712df3329.png)

druid 1.1.16
![image](https://user-images.githubusercontent.com/23610636/86738380-9c9e3580-c067-11ea-91ef-78a09536ac8c.png)

数据库 oracle 18c
ojdbc8
![image](https://user-images.githubusercontent.com/23610636/86738735-e6871b80-c067-11ea-8a18-c34eebf93452.png)

spring-cloud Hoxton.SR3
spring-cloud-alibaba 2.2.1.RELEASE
spring-boot 2.2.5.RELEASE
spring-cloud-alibaba-seata 2.2.0.RELEASE

容器 undertow

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the second-call failure with @GlobalTransactional across services A, B, and C using the reported Seata 1.2.0 configuration. Inspect the A-service and Seata server logs alongside the client YAML and SQL screenshots; done means identifying the cause and confirming repeated commits succeed.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.