4506
|
|
|
Sergei Golubchik |
mariadb-10.0.15 |
9 years ago
|
|
|
4505
|
|
|
Sergei Golubchik |
|
9 years ago
|
|
|
4504
|
|
|
Sergey Petrunya |
|
9 years ago
|
|
|
4503
|
|
|
Elena Stepanova |
|
9 years ago
|
|
|
4502
|
|
|
Alexander Barkov |
|
9 years ago
|
|
|
4501
|
|
|
Alexander Barkov |
|
9 years ago
|
|
|
4500
|
|
|
Alexander Barkov |
|
9 years ago
|
|
|
4499
|
|
|
Alexander Barkov |
|
9 years ago
|
|
|
4498
|
|
|
Alexander Barkov |
|
9 years ago
|
|
|
4497
|
|
|
sanja at askmonty |
|
9 years ago
|
|
|
4496
|
|
|
Kristian Nielsen |
|
9 years ago
|
|
|
4495
|
|
|
Kristian Nielsen |
|
9 years ago
|
|
|
4494
|
|
|
Kristian Nielsen |
|
9 years ago
|
|
|
4493
|
|
|
Jan Lindström |
|
9 years ago
|
|
|
4492
|
|
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.
|
Kristian Nielsen |
|
9 years ago
|
|
|
4491
|
|
|
Kristian Nielsen |
|
9 years ago
|
|
|
4490
|
|
|
Kristian Nielsen |
|
9 years ago
|
|
|
4489
|
|
|
Kristian Nielsen |
|
9 years ago
|
|
|
4488
|
|
|
Kristian Nielsen |
|
9 years ago
|
|
|
4487
|
|
|
Kristian Nielsen |
|
9 years ago
|
|
|