试图锁定时发现死锁;尝试重启

时间:2012-10-19 05:52:29

标签: mysql

Notification Exception: (Env:Production) : : java.lang.String :
PreparedStatementCallback; SQL [ UPDATE txn_tracker set status=?,
schedule_dt=SYSDATE() where txn_id =? and status=? ]; 
Deadlock found when trying   to get lock; try restart

如何应对此异常

请建议..

1 个答案:

答案 0 :(得分:0)

你必须抓住它并重试交易。一些提示,以减少mysql死锁的可能性: http://dev.mysql.com/doc/refman/5.0/en/innodb-deadlocks.html