2017-03-08 15:29:31 +01:00
|
|
|
--source include/galera_cluster.inc
|
2017-03-13 08:52:09 -07:00
|
|
|
--source include/have_binlog_format_row.inc
|
2017-03-08 15:29:31 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test 1: SHOW commands no longer obey wsrep_sync_wait = 1
|
|
|
|
#
|
|
|
|
|
|
|
|
--connection node_2
|
|
|
|
SET SESSION wsrep_sync_wait = 1;
|
|
|
|
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
|
2017-03-13 08:52:09 -07:00
|
|
|
--disable_result_log
|
2017-03-08 15:29:31 +01:00
|
|
|
|
|
|
|
--connection node_1
|
|
|
|
CREATE DATABASE db1;
|
|
|
|
|
|
|
|
--connection node_2
|
2017-03-13 08:52:09 -07:00
|
|
|
SHOW BINARY LOGS;
|
|
|
|
|
|
|
|
SHOW BINLOG EVENTS;
|
|
|
|
|
|
|
|
--error ER_NO_SUCH_TABLE
|
|
|
|
SHOW COLUMNS FROM t1;
|
|
|
|
|
2017-03-08 15:29:31 +01:00
|
|
|
--error ER_BAD_DB_ERROR
|
|
|
|
SHOW CREATE DATABASE db1;
|
2017-03-13 08:52:09 -07:00
|
|
|
|
|
|
|
--error ER_EVENT_DOES_NOT_EXIST
|
|
|
|
SHOW CREATE EVENT e1;
|
|
|
|
|
|
|
|
--error ER_SP_DOES_NOT_EXIST
|
|
|
|
SHOW CREATE FUNCTION f1;
|
|
|
|
|
|
|
|
--error ER_SP_DOES_NOT_EXIST
|
|
|
|
SHOW CREATE PROCEDURE p1;
|
|
|
|
|
|
|
|
--error ER_NO_SUCH_TABLE
|
|
|
|
SHOW CREATE TABLE t1;
|
|
|
|
|
|
|
|
--error ER_TRG_DOES_NOT_EXIST
|
|
|
|
SHOW CREATE TRIGGER tr1;
|
|
|
|
|
|
|
|
--error ER_NO_SUCH_TABLE
|
|
|
|
SHOW CREATE VIEW v1;
|
|
|
|
|
|
|
|
SHOW DATABASES;
|
|
|
|
|
|
|
|
SHOW ENGINE InnoDB STATUS;
|
|
|
|
|
|
|
|
--error ER_SP_DOES_NOT_EXIST
|
|
|
|
SHOW FUNCTION CODE f1;
|
|
|
|
|
|
|
|
SHOW FUNCTION STATUS;
|
|
|
|
|
|
|
|
SHOW GRANTS FOR 'root'@'localhost';
|
|
|
|
|
|
|
|
--error ER_NO_SUCH_TABLE
|
|
|
|
SHOW INDEX FROM t1;
|
|
|
|
|
|
|
|
SHOW OPEN TABLES;
|
|
|
|
|
|
|
|
--error ER_SP_DOES_NOT_EXIST
|
|
|
|
SHOW PROCEDURE CODE p1;
|
|
|
|
|
|
|
|
SHOW PROCEDURE STATUS;
|
|
|
|
|
|
|
|
SHOW PRIVILEGES;
|
|
|
|
|
|
|
|
SHOW STATUS LIKE 'wsrep_cluster_size';
|
|
|
|
|
|
|
|
SHOW TABLE STATUS;
|
|
|
|
|
|
|
|
SHOW TABLES;
|
|
|
|
|
|
|
|
SHOW TRIGGERS;
|
|
|
|
|
|
|
|
SHOW GLOBAL VARIABLES LIKE 'foo_bar';
|
|
|
|
|
|
|
|
--error 0
|
|
|
|
SHOW WARNINGS;
|
|
|
|
|
2017-03-08 15:29:31 +01:00
|
|
|
SET GLOBAL DEBUG = "";
|
|
|
|
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
|
|
|
|
|
|
|
|
SET SESSION wsrep_sync_wait = 8;
|
|
|
|
DROP DATABASE db1;
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test 2: SHOW commands now obey wsrep_sync_wait = 8
|
|
|
|
#
|
|
|
|
|
|
|
|
--connection node_2
|
|
|
|
--let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options`
|
2017-03-13 08:52:09 -07:00
|
|
|
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S";
|
2017-03-08 15:29:31 +01:00
|
|
|
SET SESSION wsrep_sync_wait = 8;
|
|
|
|
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
|
|
|
|
|
|
|
|
--connection node_1
|
2017-03-13 08:52:09 -07:00
|
|
|
CREATE TABLE q (f1 INTEGER) ENGINE=InnoDB;
|
2017-03-08 15:29:31 +01:00
|
|
|
|
|
|
|
--connection node_2
|
2017-03-13 08:52:09 -07:00
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW BINARY LOGS;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW BINLOG EVENTS;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW COLUMNS FROM t1;
|
|
|
|
|
2017-03-08 15:29:31 +01:00
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW CREATE DATABASE db1;
|
|
|
|
|
2017-03-13 08:52:09 -07:00
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW CREATE EVENT e1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW CREATE FUNCTION f1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW CREATE PROCEDURE p1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW CREATE TABLE t1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW CREATE TRIGGER tr1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW CREATE VIEW v1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW DATABASES;
|
|
|
|
|
|
|
|
--error 0
|
|
|
|
SHOW ENGINE InnoDB STATUS;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW FUNCTION CODE f1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW FUNCTION STATUS;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW GRANTS FOR 'root'@'localhost';
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW INDEX FROM t1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW OPEN TABLES;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW PROCEDURE CODE p1;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW PROCEDURE STATUS;
|
|
|
|
|
|
|
|
--error 0
|
|
|
|
SHOW PRIVILEGES;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW STATUS LIKE 'wsrep_cluster_size';
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW TABLE STATUS;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW TABLES;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW TRIGGERS;
|
|
|
|
|
|
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
|
|
SHOW GLOBAL VARIABLES LIKE 'foo_bar';
|
|
|
|
|
|
|
|
--error 0
|
|
|
|
SHOW WARNINGS;
|
|
|
|
|
2017-03-08 15:29:31 +01:00
|
|
|
SET GLOBAL DEBUG = "";
|
|
|
|
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
|
|
|
|
|
|
|
|
--disable_query_log
|
|
|
|
--eval SET GLOBAL wsrep_provider_options = "$wsrep_provider_options_orig"
|
2017-03-13 08:52:09 -07:00
|
|
|
|
|
|
|
SET SESSION wsrep_sync_wait = 15;
|
|
|
|
DROP TABLE q;
|