记录一次mysql死锁问题

145 阅读1分钟

Cause: java.sql.BatchUpdateException: Lock wait timeout exceeded; try restarting transaction ; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.BatchUpdateException: Lock wait timeout exceeded; try restarting transaction

原因是手动提交事务,代码里抛出了异常没有回滚