2016-08-05 09:21:52 [com.zhishi.common.controller.BaseController]-[ERROR] ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction ### The error may involve com.zhishi.dal.mapper.order.BizOrderMapper.updateByExampleSelective-Inline ### The error occurred while setting parameters ### SQL: update tb_biz_order SET tid = ?, orderNO = ?, product_id = ?, product_code = ?, product_name = ?, loan_amount = ?, loan_limit = ?, sum_amount = ?, downpayment_cost = ?, service_cost = ?, gps_cost = ?, mortgage_cost = ?, deposit_cost = ?, visits_cost = ?, total_cost = ?, distributor_rebate = ?, bank_finance = ?, apply_no = ?, apply_uid = ?, apply_name = ?,apply_role_id = ?, mortgage_corp_id = ?, branch_corp_id = ?, be_branch_corp = ?, teamleader_id = ?, be_teamleader = ?, team_id = ?, be_team = ?, visit_order = ?, order_state = ?, loan_state = ?, final_amount = ?, final_limit = ?, create_date = ?, update_by = ?, update_date = ?, version = ?, state = ? WHERE ( tid = ? )branch_corp_id = ?, be_branch_corp = ?, teamleader_id = ?, be_teamleader = ?, team_id = ?, be_team = ?, visit_order = ?, order_state = ?, loan_state = ?, final_amount = ?, final_limit = ?, create_date = ?, update_by = ?, update_date = ?, version = ?, state = ? WHERE ( tid = ? )branch_corp_id = ?, be_branch_corp = ?, teamleader_id = ?, be_teamleader = ?, team_id = ?, be_team = ?, visit_order = ?, order_state = ?, loan_state = ?, final_amount = ?, final_limit = ?, create_date = ?, update_by = ?, update_date = ?, version = ?, state = ? WHERE ( tid = ? )team_id = ?, be_team = ?, visit_order = ?, order_state = ?, loan_state = ?, final_amount = ?, final_limit = ?, create_date = ?, update_by = ?, update_date = ?, version = ?, state = ? WHERE ( tid = ? )team_id = ?, be_team = ?, visit_order = ?, order_state = ?, loan_state = ?, final_amount = ?, final_limit = ?, create_date = ?, update_by = ?, update_date = ?, version = ?, state = ? WHERE ( tid = ? )update_by = ?, update_date = ?, version = ?, state = ? WHERE ( tid = ? )update_by = ?, update_date = ?, version = ?, state = ? WHERE ( tid = ? ) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction ; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
Data locks cause business functions to fail to execute normally.
solution:
Find the corresponding lock Thead id, then kill it, and then execute the normal code logic.
SELECT * FROM information_schema.innodb_trx KILL 11305;
The cause of the lock can be a loophole in the code logic, and also properly debug the file configuration size of my.ini.
[Search usgrouping in WeChat public account]
Scan and follow the official account, get practical information on software development projects, avoid pitfalls on the development road, and grow rapidly.
[Search usgrouping in WeChat public account]
Scan and follow the official account, get practical information on software development projects, avoid pitfalls on the development road, and grow rapidly.