-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
How to configure 'seata.enable-auto-data-source-proxy' when using shardingsphere? #24586
Comments
Hi @longkaimao , thanks for your feedback. Could you supply a demo project to reproduce it? |
Hi @FlyingZC , could you help to have a look at it? |
The following is my main code
|
The NullPointException problem is the same as this issues #22356,but it looks like that issues hasn't been solved yet. |
今天我遇到了类似问题,报错但是不影响回滚,主要是只有开启全局事务的服务(TM)能正常运行,其余的 RM 获取不到就报空指针 |
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
I have the same problem |
|
我想问下咱重写SeataATShardingSphereTransactionManager哦?有例子嘛? |
version:5.2.0
I am using shardingsphere5.2.0 + Seata1.6.0 for my code,if I configure seata.enable-auto-data-source-proxy=false,and the branch transaction code uses annotation @ShardingSphereTransactionType and @transactional, then the branch trancaction service report a NullPointException error, which from SeataTransactionHolder.get().
java.lang.NullPointerException: null at org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager.commit(SeataATShardingTransactionManager.java:110) ~
If I configure seata.enable-auto-data-source-proxy=false and the code only used annotation @ShardingSphereTransactionType ,
or If configure seata.enable-auto-data-source-proxy=true and the code only uses annotation @transactional.
Both the two way everything looks fine.
So,how do I configure it?
thanks!
The text was updated successfully, but these errors were encountered: