mariadb/storage
Kristian Nielsen 920789e9d4 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.

Note: This should be null-merged to 10.6, as a different fix is needed
there due to InnoDB lock code changes.

Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
2023-08-15 16:34:09 +02:00
..
archive Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
blackhole Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
cassandra MDEV-31358: Update description for MariaDB debian/rpm packages 2023-07-03 17:45:58 +10:00
connect MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
csv
example Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
federated Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
federatedx Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
heap Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
innobase MDEV-31482: Lock wait timeout with INSERT-SELECT, autoinc, and statement-based replication 2023-08-15 16:34:09 +02:00
maria Fix use of uninitialized variable 2023-07-03 15:46:58 +02:00
mroonga MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
myisam MDEV-28054 Various crashes upon INSERT/UPDATE after changing Aria settings 2023-05-02 23:37:10 +03:00
myisammrg
oqgraph MDEV-31358: Update description for MariaDB debian/rpm packages 2023-07-03 17:45:58 +10:00
perfschema MDEV-29091: Correct event_name in PFS for wait caused by FOR UPDATE 2023-02-15 14:36:05 +00:00
rocksdb MDEV-31358: Update description for MariaDB debian/rpm packages 2023-07-03 17:45:58 +10:00
sequence Apply clang-tidy to remove empty constructors / destructors 2023-02-09 16:09:08 +02:00
sphinx Merge branch '10.3' into 10.4 2022-10-26 14:55:47 +02:00
spider MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
test_sql_discovery MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
tokudb MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00