-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
An null exception occurred when integrating seata #24735
Comments
Hi @ulwx |
@transactional(propagation = Propagation.REQUIRED) } @GlobalTransactional is an annotation from seata, indicating that this is a global transaction. When TransactionTypeHolder. set (TransactionType. BASE) is used in a method(using the @ GlobalTransactional annotation), an error will be reported. The reason is that sharding-jdbc determines in the code that if it is in a global transaction, SeataATShardingSphereTransactionManager#begin() is not executed, finally, in the code ”SeataTransactionHolder. get(). commit()” in the SeataATShardingSphereTransactionManager#commit() method, SeataTransactionHolder. get()=null, resulting in a null exception! |
|
An error is reported when integrating seata. When we use sharding-jdbc with seata, a null exception will be reported! The above is my code.
The text was updated successfully, but these errors were encountered: