mariadb/storage/innobase
Kristian Nielsen 805e0668c9 MDEV-31482: Lock wait timeout with INSERT-SELECT, autoinc, and statement-based replication
Remove the exception that InnoDB does not report auto-increment locks waits
to the parallel replication.

There was an assumption that these waits could not cause conflicts with
in-order parallel replication and thus need not be reported. However, this
assumption is wrong and it is possible to get conflicts that lead to hangs
for the duration of --innodb-lock-wait-timeout. This can be seen with three
transactions:

1. T1 is waiting for T3 on an autoinc lock
2. T2 is waiting for T1 to commit
3. T3 is waiting on a normal row lock held by T2

Here, T3 needs to be deadlock killed on the wait by T1.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2023-08-15 16:40:02 +02:00
..
btr
buf
data
dict
eval
fil
fsp
fts
fut
gis
ha
handler
ibuf
include
lock MDEV-31482: Lock wait timeout with INSERT-SELECT, autoinc, and statement-based replication 2023-08-15 16:40:02 +02:00
log
mem
mtr
mysql-test/storage_engine
os
page
pars
que
read
rem
row
srv
sync
trx
unittest
ut
.clang-format-old
bzip2.cmake
CMakeLists.txt
COPYING.Google
COPYING.Percona
lz4.cmake
lzma.cmake
lzo.cmake
snappy.cmake