mariadb/mysql-test/suite
Denis Protivensky 235f33e360 MDEV-33133: MDL conflict handling code should skip BF-aborted trxs
It's possible that MDL conflict handling code is called more
than once for a transaction when:
- it holds more than one conflicting MDL lock
- reschedule_waiters() is executed,
which results in repeated attempts to BF-abort already aborted
transaction.
In such situations, it might be that BF-aborting logic sees
a partially rolled back transaction and erroneously decides
on future actions for such a transaction.

The specific situation tested and fixed is when a SR transaction
applied in the node gets BF-aborted by a started TOI operation.
It's then caught with the server transaction already rolled back,
but with no MDL locks yet released. This caused wrong state
detection for such a transaction during repeated MDL conflict
handling code execution.

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
2024-09-01 16:19:59 +02:00
..
archive also protect the /*!999999 sandbox comment 2024-07-17 21:25:40 +02:00
binlog MDEV-34318 mariadb-dump SQL syntax error with MAX_STATEMENT_TIME against Percona MySQL server 2024-07-17 21:25:40 +02:00
binlog_encryption MDEV-34318 mariadb-dump SQL syntax error with MAX_STATEMENT_TIME against Percona MySQL server 2024-07-17 21:25:40 +02:00
client
compat also protect the /*!999999 sandbox comment 2024-07-17 21:25:40 +02:00
csv
encryption MDEV-34670 IMPORT TABLESPACE unnecessary traverses tablespace list 2024-07-31 14:13:38 +05:30
engines
federated also protect the /*!999999 sandbox comment 2024-07-17 21:25:40 +02:00
funcs_1
funcs_2
galera MDEV-33133: MDL conflict handling code should skip BF-aborted trxs 2024-09-01 16:19:59 +02:00
galera_3nodes MDEV-33133: MDL conflict handling code should skip BF-aborted trxs 2024-09-01 16:19:59 +02:00
galera_3nodes_sr galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
galera_sr galera mtr tests: correction of inaccuracies in warnings suppressions 2024-07-08 23:36:21 +02:00
gcol
handler
heap
innodb MDEV-29010 Table cannot be loaded after instant ALTER 2024-08-01 18:58:43 +05:30
innodb_fts MDEV-14231 MATCH() AGAINST( IN BOOLEAN MODE), results mismatch 2024-08-13 15:22:09 +05:30
innodb_gis MDEV-32456: incorrect result of gis function in view protocol 2024-07-17 22:37:32 +05:30
innodb_i_s
innodb_zip
jp
json
large_tests
maria
mariabackup Skip mariabackup.slave_provision_nolock in --valgrind, it uses a lot of CPU 2024-08-26 14:39:24 +02:00
mtr/t
mtr2
multi_source
optimizer_unfixed_bugs
parts
perfschema
perfschema_stress
period
plugins
roles also protect the /*!999999 sandbox comment 2024-07-17 21:25:40 +02:00
rpl Fix sporadic failure of test case rpl.rpl_start_stop_slave 2024-08-26 14:39:24 +02:00
s3 also protect the /*!999999 sandbox comment 2024-07-17 21:25:40 +02:00
sql_sequence also protect the /*!999999 sandbox comment 2024-07-17 21:25:40 +02:00
storage_engine
stress
sys_vars
unit
vcol MDEV-34632 Assertion failed in handler::assert_icp_limitations 2024-08-07 14:50:19 +02:00
versioning
wsrep Fix recovering state GTID in case log file contains non-text bytes - 2024-09-01 02:52:52 +02:00