Commit dc0613ed authored by Jan Lindström's avatar Jan Lindström

MDEV-15809: Test failure on galera.MW-44

Disable general log while truncating mysql.general_log to
avoid queries to be inserted there.
parent 77934323
...@@ -30,4 +30,4 @@ galera.MW-328A : have_deadlocks test not stable ...@@ -30,4 +30,4 @@ galera.MW-328A : have_deadlocks test not stable
galera_var_retry_autocommit : MDEV-15794 Test failure on galera.galera_var_retry_autocommit galera_var_retry_autocommit : MDEV-15794 Test failure on galera.galera_var_retry_autocommit
galera_var_auto_inc_control_on : MDEV-15803 Test failure on galera.galera_var_auto_inc_control_on galera_var_auto_inc_control_on : MDEV-15803 Test failure on galera.galera_var_auto_inc_control_on
query_cache : MDEV-15805 Test failure on galera.query_cache query_cache : MDEV-15805 Test failure on galera.query_cache
galera.MW-44 : MDEV-15809 Test failure on galera.MW-44
SET @@global.wsrep_replicate_myisam=OFF; SET GLOBAL general_log='OFF';
TRUNCATE TABLE mysql.general_log; TRUNCATE TABLE mysql.general_log;
SELECT COUNT(*) from mysql.general_log; SELECT COUNT(*) from mysql.general_log;
COUNT(*) COUNT(*)
1 0
SELECT * FROM mysql.general_log;
event_time user_host thread_id server_id command_type argument
SET GLOBAL general_log='OFF';
TRUNCATE TABLE mysql.general_log; TRUNCATE TABLE mysql.general_log;
SELECT COUNT(*) from mysql.general_log; SELECT COUNT(*) from mysql.general_log;
COUNT(*) COUNT(*)
1 0
SELECT * FROM mysql.general_log;
event_time user_host thread_id server_id command_type argument
SET GLOBAL general_log='ON';
SELECT COUNT(*) from mysql.general_log; SELECT COUNT(*) from mysql.general_log;
COUNT(*) COUNT(*)
1 1
...@@ -18,8 +24,8 @@ SET SESSION wsrep_osu_method=TOI; ...@@ -18,8 +24,8 @@ SET SESSION wsrep_osu_method=TOI;
SELECT COUNT(*) = 2 FROM mysql.general_log WHERE argument LIKE 'CREATE%' OR argument LIKE 'ALTER%'; SELECT COUNT(*) = 2 FROM mysql.general_log WHERE argument LIKE 'CREATE%' OR argument LIKE 'ALTER%';
COUNT(*) = 2 COUNT(*) = 2
1 1
SET GLOBAL general_log='ON';
SELECT COUNT(*) = 0 FROM mysql.general_log WHERE argument NOT LIKE 'SELECT%'; SELECT COUNT(*) = 0 FROM mysql.general_log WHERE argument NOT LIKE 'SELECT%';
COUNT(*) = 0 COUNT(*) = 0
1 1
DROP TABLE t1; DROP TABLE t1;
SET @@global.wsrep_replicate_myisam=Default;
...@@ -5,16 +5,20 @@ ...@@ -5,16 +5,20 @@
--source include/galera_cluster.inc --source include/galera_cluster.inc
--source include/have_innodb.inc --source include/have_innodb.inc
SET @@global.wsrep_replicate_myisam=OFF;
--connection node_1 --connection node_1
SET GLOBAL general_log='OFF';
TRUNCATE TABLE mysql.general_log; TRUNCATE TABLE mysql.general_log;
SELECT COUNT(*) from mysql.general_log; SELECT COUNT(*) from mysql.general_log;
SELECT * FROM mysql.general_log;
--connection node_2 --connection node_2
SET GLOBAL general_log='OFF';
TRUNCATE TABLE mysql.general_log; TRUNCATE TABLE mysql.general_log;
SELECT COUNT(*) from mysql.general_log; SELECT COUNT(*) from mysql.general_log;
SELECT * FROM mysql.general_log;
--connection node_1 --connection node_1
SET GLOBAL general_log='ON';
SELECT COUNT(*) from mysql.general_log; SELECT COUNT(*) from mysql.general_log;
SET SESSION wsrep_osu_method=TOI; SET SESSION wsrep_osu_method=TOI;
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
...@@ -25,6 +29,7 @@ SET SESSION wsrep_osu_method=TOI; ...@@ -25,6 +29,7 @@ SET SESSION wsrep_osu_method=TOI;
SELECT COUNT(*) = 2 FROM mysql.general_log WHERE argument LIKE 'CREATE%' OR argument LIKE 'ALTER%'; SELECT COUNT(*) = 2 FROM mysql.general_log WHERE argument LIKE 'CREATE%' OR argument LIKE 'ALTER%';
--connection node_2 --connection node_2
SET GLOBAL general_log='ON';
SELECT COUNT(*) = 0 FROM mysql.general_log WHERE argument NOT LIKE 'SELECT%'; SELECT COUNT(*) = 0 FROM mysql.general_log WHERE argument NOT LIKE 'SELECT%';
DROP TABLE t1; DROP TABLE t1;
SET @@global.wsrep_replicate_myisam=Default;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment