Open fengzhongye opened 9 months ago
It’s not just a deadlock problem. We found several problems during stress testing, such as Cannot invoke method mod() on null object. and Routed target order_item_2 does not exist, available targets are `[order_0, order_1, order_2]. I'll send it out when I finish it.
And the transaction has never been submitted
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
DEADLOCK
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
不只是死锁问题,我们在压测的时候还发现了几个问题,比如 Cannot Invoke Method Mod() On Null Object,路由目标 order_item_2 does not exist,可用目标是 `[order_0, order_1, order_2]。等我弄好了再发出来。
It’s not just a deadlock problem. We found several problems during stress testing, such as Cannot invoke method mod() on null object. and Routed target order_item_2 does not exist, available targets are `[order_0, order_1, order_2]. I'll send it out when I finish it.
Did you solve that problem? That happened to me ”Caused by: java.sql.SQLException: Unknown exception: Cannot invoke method hashCode() on null object“
Different problems please use separate issues.
Bug Report
Which version of ShardingSphere did you use?
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
Updating data based on primary key id will not deadlock
Actual behavior
Updating data based on primary key id will deadlock
Reason analyze (If you can)
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
This is my class.
The same code, I have no problem using mybatis alone, but introducing shardingsphere will lead to deadlock
Example codes for reproduce this issue (such as a github link).
mybatis.zip mybatis+shardingjdbc.zip