[mysql] com.netflix.zuul.exception.ZuulException: Hystrix Readed time out Gateway Timeout 504


今天遇到這個問題是因為mysql 里有個事務一直沒結束,

導致其他線程進來后一直等待鎖

模塊報錯Caused by: com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction

解決:

 

 

//獲取事務 
SELECT * FROM information_schema.innodb_trx; 
//獲取鎖
 SELECT * FROM information_schema.innodb_locks;
  //獲取當前正在工作線程與鎖的關系
 SELECT * FROM information_schema.innodb_lock_waits ;
殺掉對應的進程
  kill 3774;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM