报错:attempted to return null from a method with a primitive return type (int)
报错:attempted to return null from a method with a primitive return type (int)
为了这个问题折腾了1个多小时,真的很无语
产生这样的问题遇到过两种情况:
1.某个事务没有提交,导致一直无法更新
查看事务
select * from information_schema.INNODB_TRX;
查看锁
select * from information_schema.INNODB_LOCKS;
查看锁等待
select * from information_schema.INNODB_LOCK_WAITS;
kill掉对应 thread 就好 (开发环境的时候)