summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/r/rpl_gtid_crash.result
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-03-28 13:03:51 +0100
committerunknown <knielsen@knielsen-hq.org>2013-03-28 13:03:51 +0100
commit5aaf73fcaac30ebfd45188c24de3b57aa0929c36 (patch)
tree6df5f76db8f127fc156c5c2a0b076a88536ba917 /mysql-test/suite/rpl/r/rpl_gtid_crash.result
parent9303ecd02202afac0b7ab1cdec7bfe3e6c3aef95 (diff)
downloadmariadb-git-5aaf73fcaac30ebfd45188c24de3b57aa0929c36.tar.gz
MDEV-26: Global transaction ID.
Add tests crashing the slave in the middle of replication and checking that replication picks-up again on restart in a crash-safe way. Fix silly code that causes crash by inserting uninitialised data into a hash.
Diffstat (limited to 'mysql-test/suite/rpl/r/rpl_gtid_crash.result')
-rw-r--r--mysql-test/suite/rpl/r/rpl_gtid_crash.result31
1 files changed, 31 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/r/rpl_gtid_crash.result b/mysql-test/suite/rpl/r/rpl_gtid_crash.result
index 7257847e2c0..c52a94db47b 100644
--- a/mysql-test/suite/rpl/r/rpl_gtid_crash.result
+++ b/mysql-test/suite/rpl/r/rpl_gtid_crash.result
@@ -56,5 +56,36 @@ a
1
2
3
+*** Test crashing slave at various points and check that it recovers crash-safe. ***
+include/stop_slave.inc
+SET GLOBAL debug_dbug="+d,inject_crash_before_write_rpl_slave_state";
+START SLAVE;
+INSERT INTO t1 VALUES (4);
+include/stop_slave.inc
+SET GLOBAL debug_dbug="+d,crash_commit_before";
+START SLAVE;
+INSERT INTO t1 VALUES (5);
+include/stop_slave.inc
+SET GLOBAL debug_dbug="+d,crash_commit_after";
+START SLAVE;
+INSERT INTO t1 VALUES (6);
+include/stop_slave.inc
+SET GLOBAL debug_dbug="+d,inject_crash_before_flush_rli";
+START SLAVE;
+INSERT INTO t1 VALUES (7);
+include/stop_slave.inc
+SET GLOBAL debug_dbug="+d,inject_crash_after_flush_rli";
+START SLAVE;
+INSERT INTO t1 VALUES (8);
+SELECT * FROM t1 ORDER BY a;
+a
+1
+2
+3
+4
+5
+6
+7
+8
DROP TABLE t1;
include/rpl_end.inc