You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5.3.1 When integrating seata global transactions, if there are also global transactions on the periphery, the commit () method reports a null exception
#24332
Closed
ulwx opened this issue
Feb 24, 2023
· 1 comment
· Fixed by #30146
When the above code is running, doInsert() will throw a null exception, which is thrown by the commit() method in doInsert(). The reason is that when the shardingjdbc proxy commit() method is used, because the SeataATShardingSphereTransactionManager # begin() method has not been executed because of the existence of GlobalTransaction on the periphery, the TransactionTypeHolder # set() method has not been executed and is always empty, Thus, when the shardingjdbc agent commit() method is executed, the query is null through TransactionTypeHolder # get(), and a null pointer exception is reported!
The text was updated successfully, but these errors were encountered:
When the above code is running, doInsert() will throw a null exception, which is thrown by the commit() method in doInsert(). The reason is that when the shardingjdbc proxy commit() method is used, because the SeataATShardingSphereTransactionManager # begin() method has not been executed because of the existence of GlobalTransaction on the periphery, the TransactionTypeHolder # set() method has not been executed and is always empty, Thus, when the shardingjdbc agent commit() method is executed, the query is null through TransactionTypeHolder # get(), and a null pointer exception is reported!
The text was updated successfully, but these errors were encountered: