mariadb/mysql-test/suite
Kristian Nielsen 26b1113032 MDEV-6917: Parallel replication: "Commit failed due to failure of an earlier commit on which this one depends", but no prior failure seen
This bug was seen when parallel replication experienced a deadlock between
transactions T1 and T2, where T2 has reached the commit phase and is waiting
for T1 to commit first. In this case, the deadlock is broken by sending a kill
to T2; that kill error is then later detected and converted to a deadlock
error, which causes T2 to be rolled back and retried.

The problem was that the kill caused ha_commit_trans() to errorneously call
wakeup_subsequent_commits() on T3, signalling it to abort because T2 failed
during commit. This is incorrect, because the error in T2 is only a temporary
error, which will be resolved by normal transaction retry. We should not
signal error to the next transaction until we have executed the code that
handles such temporary errors.

So this patch just removes the calls to wakeup_subsequent_commits() from
ha_commit_trans(). They are incorrect in this case, and they are not needed in
general, as wakeup_subsequent_commits() must in any case be called in
finish_event_group() to wakeup any transactions that may have started to wait
after ha_commit_trans(). And normally, wakeup will in fact have happened
earlier, either from the binlog group commit code, or (in case of no
binlogging) after the fast part of InnoDB/XtraDB group commit.

The symptom of this bug was that replication would break on some transaction
with "Commit failed due to failure of an earlier commit on which this one
depends", but with no such failure of an earlier commit visible anywhere.
2014-11-13 11:01:31 +01:00
..
archive 5.5.39 merge 2014-08-07 18:06:56 +02:00
binlog print binlog unsafe errors at log_warnings level 1, not 2. 2014-09-18 15:24:30 +02:00
csv MDEV-5612 - my_rename() deletes files when it shouldn't 2014-02-26 12:55:28 +04:00
engines Don't give warning if there are two unique keys used with INSERT .. ON DUPLICATE KEY UPDATE. 2014-09-16 00:00:47 +03: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 5.5 merge 2014-11-03 17:47:37 +01: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
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-6255 DUPLICATE KEY Errors on SELECT .. GROUP BY that uses temporary and filesort. 2014-09-11 22:42:35 +03: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-7075 perfschema.mks_timer-6258 test not skipped on builds without perfschema 2014-11-12 05:40:21 +04:00
perfschema_stress perfschema 5.6.10 initial commit. 2014-05-06 23:20:50 +02:00
plugins Recoding feedback_plugin_send.result (forgotten in the previous commit). 2014-08-12 07:52:19 +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-6917: Parallel replication: "Commit failed due to failure of an earlier commit on which this one depends", but no prior failure seen 2014-11-13 11:01:31 +01:00
storage_engine Changes in storage_engine test suite: 2014-09-15 20:33:11 +04:00
stress
sys_vars MDEV-7035: Remove innodb_io_capacity setting depending on 2014-11-13 13:24:26 +02:00
unit MDEV-4425 REGEXP enhancements 2013-09-26 18:02:17 +04:00
vcol MDEV-6103 - Adding/removing non-materialized virtual column triggers 2014-06-03 16:57:29 +04:00