summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/t/rpl_incident.test
diff options
context:
space:
mode:
authorElena Stepanova <elenst@montyprogram.com>2016-12-05 20:19:01 +0200
committerElena Stepanova <elenst@montyprogram.com>2016-12-05 20:19:01 +0200
commit611f91605adce17df87acf96b5aede0b73d0fc12 (patch)
tree56fef212fc7f88802e0415e4c90c29c62e0b5cdf /mysql-test/suite/rpl/t/rpl_incident.test
parent9199d727598d60e2e56cebaadb74f4fb042cbcd4 (diff)
downloadmariadb-git-611f91605adce17df87acf96b5aede0b73d0fc12.tar.gz
MDEV-9038 Binlog encryption tests
- created binlog_encryption test suite and added it to the default list - moved some tests from rpl, binlog and multisource suites to extra so that they could be re-used in different suites - made minor changes in include files
Diffstat (limited to 'mysql-test/suite/rpl/t/rpl_incident.test')
-rw-r--r--mysql-test/suite/rpl/t/rpl_incident.test49
1 files changed, 1 insertions, 48 deletions
diff --git a/mysql-test/suite/rpl/t/rpl_incident.test b/mysql-test/suite/rpl/t/rpl_incident.test
index adf20953b0f..9be855e1a8b 100644
--- a/mysql-test/suite/rpl/t/rpl_incident.test
+++ b/mysql-test/suite/rpl/t/rpl_incident.test
@@ -1,48 +1 @@
---source include/master-slave.inc
---source include/have_debug.inc
-
---echo **** On Master ****
-CREATE TABLE t1 (a INT);
-
-INSERT INTO t1 VALUES (1),(2),(3);
-SELECT * FROM t1;
-
-let $debug_save= `SELECT @@GLOBAL.debug`;
-SET GLOBAL debug_dbug= '+d,incident_database_resync_on_replace,*';
-
-# This will generate an incident log event and store it in the binary
-# log before the replace statement.
-REPLACE INTO t1 VALUES (4);
---save_master_pos
-SELECT * FROM t1;
-
---disable_query_log
-eval SET GLOBAL debug_dbug= '$debug_save';
---enable_query_log
-
-connection slave;
-# Wait until SQL thread stops with error LOST_EVENT on master
-call mtr.add_suppression("Slave SQL.*The incident LOST_EVENTS occurred on the master.* 1590");
-let $slave_sql_errno= 1590;
-let $show_slave_sql_error= 1;
-source include/wait_for_slave_sql_error.inc;
-
-# The 4 should not be inserted into the table, since the incident log
-# event should have stop the slave.
---echo **** On Slave ****
-SELECT * FROM t1;
-
-SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
-START SLAVE;
---sync_with_master
-
-# Now, we should have inserted the row into the table and the slave
-# should be running. We should also have rotated to a new binary log.
-
-SELECT * FROM t1;
-source include/check_slave_is_running.inc;
-
-connection master;
-DROP TABLE t1;
---sync_slave_with_master
---source include/rpl_end.inc
+--source extra/rpl_tests/rpl_incident.inc