alibaba / cobar

a proxy for sharding databases and tables
Apache License 2.0
3.21k stars 1.22k forks source link

Cobar死锁问题 #75

Closed zhuchao941 closed 7 years ago

zhuchao941 commented 7 years ago

由于Cobar与Mysql交互都走同一个线程池——Executor 在手动提交事务的场景下,如果对同一条记录更新的并发量很高,可能会造成线程池中堵满了update方法,而没有空余资源来执行commit/rollback。这样一来,update无法获得锁,commit/rollback也无法执行,从而造成死锁

zhuchao941 commented 7 years ago

具体可见: http://blog.csdn.net/u012345283/article/details/53574634