-
Notifications
You must be signed in to change notification settings - Fork 6.8k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
The integration with Seata doesn't work #31715
Comments
@strongduanmu @TherChenYang I also have the same problem, which has been resolved for two or three days but still hasn't been resolved.Help!~ |
@WXingSong ok, the same problem occurred at #31667, I will check it |
@TherChenYang T What is the current stable version for SpringCloudAlibaba 2022.0.0? The corresponding version of Seata is Seata 1.7, but there is an issue when integrating 1.7. According to #30146, Seata needs to use 2.0. Does the lower version of Shading jdbc support it? I hope to reduce the version usage before this issue is resolved. |
@linghengqian Can you help with this issue? I see that several Seata-related issues have been fixed in #30146. |
@Famezyy I also have the same problem, have you solved it? I found that when feign remotely calls the interface, the called interface |
no I'm not able to resolve it, hope they can provide a solution :) |
|
|
@linghengqian Thank you for your time, I have added a junit test with a description, you can simply run |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I'm using version 5.5.0, but when incorporating seata it is not working as expected.
I first created two services: consumer and provider, and the provider service is been called in consumer service.
Then checked the official documentation and disabled the auto data proxy of seata. Also refered to #22356 and #30146 and added the following interceptor in the provider service:
but when error occured in consumer service after calling provider service, rollback only happened in consumer service.
consumer service log
provider service log
You can see there was no rollback happened in provider service.
I"m not sure if it is correct but in provider service it was also registering TM and RM, and there was no any branch transaction been registered.
When debugging it, I found that in provider service, it is entering the
![image](https://private-user-images.githubusercontent.com/63626924/340070554-408f8761-fe3b-4a8f-905f-20c632fe9e29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3NTkxNDIsIm5iZiI6MTczOTc1ODg0MiwicGF0aCI6Ii82MzYyNjkyNC8zNDAwNzA1NTQtNDA4Zjg3NjEtZmUzYi00YThmLTkwNWYtMjBjNjMyZmU5ZTI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDAyMjA0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE3M2ZiYTFkZDdlYjgxZTI3YmY1ZDhlOThlNmYyNDQ2NzU0MGJlOGU2MTJkM2FiOTgwNmE2NjQ2Mjc5MTZhOTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-hWJfM4F3E71AtULXWOs0lB0TLmp5hCsBhAErdQ1iCs)
commit()
method ofDefaultGlobalTransaction
fromSeataATShardingSphereTransactionManager
, and as thetransaction role
isParticipant
, it is doing nothing but just print out log says ignore commit:But actually it should not come to here, I'm expecting it can register a branch transaction and commit it but not try to commit the global transaction directly.
you can find the example code in the below repo.
https://github.com/Famezyy/code-repo/tree/master
could you please tell me how to fix it?
The text was updated successfully, but these errors were encountered: