1

In the following case I am seeing a deadlock detected, retry transaction error:

Multiple insertions are occurring concurrently. Each insertion is done within a transaction for only a single row. (Each transaction only does one insert between its begin and commit.) The table has 3 columns, one of which is the PK. The PK is not auto-incremented.

How is it possible for a deadlock to occur if each transaction is only holding a single lock? I thought that a single row insertion would only require a single row level lock.

Yehia Awad
  • 2,898
  • 1
  • 20
  • 31
lf215
  • 1,185
  • 7
  • 41
  • 83

1 Answers1

0

Try using on mysql shell: show processlist This will give you details of what queries are under execution among other things. This would be a good starting point.

Razor Tag
  • 36
  • 4