diff options
author | Andrei <andrei.elkin@mariadb.com> | 2023-01-19 19:42:24 +0200 |
---|---|---|
committer | Andrei <andrei.elkin@mariadb.com> | 2023-01-23 19:01:48 +0200 |
commit | dc646c23897802bb634a1c95afde6f854a49ebb1 (patch) | |
tree | f14f9fc5bf2da095a87b0c7b3247d57784bdc914 /mysql-test/suite/rpl/t/parallel_backup_slave_binlog_off.test | |
parent | 647a7232ff12361a271c33223f1e1bbee6da5675 (diff) | |
download | mariadb-git-dc646c23897802bb634a1c95afde6f854a49ebb1.tar.gz |
MDEV-30423 Deadlock on Replica during BACKUP STAGE BLOCK_COMMIT on XA transactions
The user XA commit execution branch was caught not have been covered
with MDEV-21953 fixes.
The XA involved deadlock is resolved now to apply the former fixes
pattern.
Along the fixes the following changes have been implemented.
- MDL lock attribute correction
- dissociation of the externally completed XA from the current
thread's xid_state in the error branches
- cleanup_context() preseves the prepared XA
- wait_for_prior_commit() is relocated to satisfy both
the binlog ON (log-slave-updates and skip-log-bin)
and OFF slave execution branches.
Diffstat (limited to 'mysql-test/suite/rpl/t/parallel_backup_slave_binlog_off.test')
-rw-r--r-- | mysql-test/suite/rpl/t/parallel_backup_slave_binlog_off.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/t/parallel_backup_slave_binlog_off.test b/mysql-test/suite/rpl/t/parallel_backup_slave_binlog_off.test new file mode 100644 index 00000000000..7cefbdb3ddd --- /dev/null +++ b/mysql-test/suite/rpl/t/parallel_backup_slave_binlog_off.test @@ -0,0 +1,7 @@ +# +--echo # Specialized --skip-log-bin slave version of parallel_backup test. +# +--echo # MDEV-21953: deadlock between BACKUP STAGE BLOCK_COMMIT and parallel +--echo # MDEV-30423: dealock XA COMMIT vs BACKUP +--let $rpl_server_skip_log_bin= 1 +--source parallel_backup.test |