mariadb/mysql-test/suite
Kristian Nielsen f27817c1d0 MDEV-7326: Server deadlock in connection with parallel replication
The bug occurs when a transaction does a retry after all transactions have
done mark_start_commit() in a batch of group commit from the master. In this
case, the retrying transaction can unmark_start_commit() after the following
batch has already started running and de-allocated the GCO. Then after retry,
the transaction will re-do mark_start_commit() on a de-allocated GCO, and also
wakeup of later GCOs can be lost.

This was seen "in the wild" by a user, even though it is not known exactly
what circumstances can lead to retry of one transaction after all transactions
in a group have reached the commit phase.

The lifetime around GCO was somewhat clunky anyway. With this patch, a GCO
lives until rpl_parallel_entry::last_committed_sub_id has reached the last
transaction in the GCO. This guarantees that the GCO will still be alive when
a transaction does mark_start_commit(). Also, we now loop over the list of
active GCOs for wakeup, to ensure we do not lose a wakeup even in the
problematic case.
2015-01-07 14:45:39 +01:00
..
archive 5.5.39 merge 2014-08-07 18:06:56 +02:00
binlog 5.5 merge 2014-11-19 17:23:39 +01:00
csv MDEV-5612 - my_rename() deletes files when it shouldn't 2014-02-26 12:55:28 +04:00
engines Run engines tests for MyISAM and in-built InnoDB 2014-12-05 14:23:24 +04:00
federated 10.0-base merge 2014-02-26 15:28:07 +01:00
funcs_1 MDEV-6528 review debian patches for mysql 2014-10-02 11:58:24 +02:00
funcs_2
handler 10.0-base merge 2014-02-03 15:22:39 +01:00
heap 5.5.40+ merge 2014-10-09 10:30:11 +02:00
innodb Fix test case to allow success on create table (Windows). 2014-12-10 12:12:09 +02:00
innodb_fts MDEV-6047: Make exists_to_in optimization ON by default 2014-06-09 13:42:21 +03:00
innodb_zip 10.0-base merge 2014-02-26 15:28:07 +01:00
jp find_files(): don't sort files in my_dir(), sort table names 2013-04-07 17:17:25 +02:00
large_tests
manual
maria 5.5.39 merge 2014-08-07 18:06:56 +02:00
mtr/t
mtr2 Fix for overlayed include files on Windows and a test case 2013-11-10 14:37:32 +04:00
multi_source MDEV-7037: MariaDB 10.0 does not build on Debian / kfreebsd-i386/amd64 due to MTR failure: multi_source.gtid 2014-11-27 09:34:41 +01:00
optimizer_unfixed_bugs MDEV-4447 MariaDB sources should have unix-style line endings everywhere 2014-02-27 12:00:16 +01:00
parts 5.5 merge 2014-05-09 12:35:11 +02:00
percona Percona-Server-5.6.14-rel62.0 merge 2013-12-22 17:06:50 +01:00
perfschema MDEV-7342: Test failure in perfschema.setup_instruments_defaults 2014-12-18 11:59:08 +01:00
perfschema_stress perfschema 5.6.10 initial commit. 2014-05-06 23:20:50 +02:00
plugins MDEV-7157 plugins.server_audit fails sporadically in buildbot. 2014-11-24 02:53:45 +04:00
roles MDEV-6401 SET ROLE returning ERROR 1959 Invalid role specification for valid role 2014-06-27 09:32:55 +02:00
rpl MDEV-7326: Server deadlock in connection with parallel replication 2015-01-07 14:45:39 +01:00
storage_engine 5.5 merge 2014-11-19 17:23:39 +01:00
stress
sys_vars 5.5 merge 2014-11-21 20:20:39 +01:00
unit MDEV-4425 REGEXP enhancements 2013-09-26 18:02:17 +04:00
vcol 5.5 merge 2014-11-19 17:23:39 +01:00