Getting “Deadlock found when trying to get lock; try restarting transaction”

后端 未结 5 1760
一个人的身影
一个人的身影 2020-12-07 21:11

My Application(java spring-core) has several threads running concurrently and accessing db, I am getting exception in some peaktime

07:43:33,400 WARN  [org.         


        
5条回答
  •  醉酒成梦
    2020-12-07 21:14

    When you face this kind of error "deadlock detected". You should inspect your queries execution and verify if two or more concurrent transactions can cause a deadlock.

    These transactions should acquire database locks in the same order in order to avoid deadlock.

提交回复
热议问题