Debugging & Fixing mysql deadlock issue – eLitmus Blog

Recently, during one of our tests, we encountered a deadlock issue that was reported by Sentry. The deadlock occurred while attempting to insert scores into a table after completing a candidate’s test. We were initially unsure about the cause of this deadlock. Upon investigation, we discovered that it was due to the interplay of various locks in our MySQL database. In this blog post, we will deep dive into the nature of these locks, understand their impact on transactions, and present the solutions we implemented to mitigate deadlock occurrences.


This is a companion discussion topic for the original entry at https://www.elitmus.com/blog/technology/debugging-and-fixing-mysql-deadlock-issue

Excellent investigative write-up.