第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

代碼層面如何解決Lock wait timeout exceeded; try restarting

代碼層面如何解決Lock wait timeout exceeded; try restarting

收到一只叮咚 2019-03-20 18:15:34
代碼層面如何解決Lock wait timeout exceeded; try restarting transaction代碼如下:org.springframework.dao.CannotAcquireLockException: ### Error updating database.  Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction### The error may involve com.alibaba.tboss.dal.mysql.workOrder.mapper.AssetBeanMapperExt.updateByPrimaryKeySelective-Inline### The error occurred while setting parameters### SQL: update idc_asset_list      SET sn = ?,                                                                                                           MODIFIER = 'system',                       GMT_MODIFIED = current_timestamp,                                            remark = ?,                                                                        flow_state = ?      where asset_id = ?     and is_deleted = 'n'### Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
查看完整描述

2 回答

?
拉風(fēng)的咖菲貓

TA貢獻1995條經(jīng)驗 獲得超2個贊

這個主要還是得看你另外哪個事務(wù)太慢,把行鎖一直拿著不釋放。Spring的@Transactioal注解里面的timeout是可以加長時間的,但最好還是遵循默認(rèn)的,找出慢的事務(wù),通過各種優(yōu)化方式解決,比如大事務(wù)拆小事務(wù)


查看完整回答
反對 回復(fù) 2019-04-24
  • 2 回答
  • 0 關(guān)注
  • 9962 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號