Browse Source
Merge 10.1 into 10.2
Merge 10.1 into 10.2
For running the Galera tests, the variable my_disable_leak_check
was set to true in order to avoid assertions due to memory leaks
at shutdown.
Some adjustments due to MDEV-13625 (merge InnoDB tests from MySQL 5.6)
were performed. The most notable behaviour changes from 10.0 and 10.1
are the following:
* innodb.innodb-table-online: adjustments for the DROP COLUMN
behaviour change (MDEV-11114, MDEV-13613)
* innodb.innodb-index-online-fk: the removal of a (1,NULL) record
from the result; originally removed in MySQL 5.7 in the
Oracle Bug #16244691 fix
377774689b
* innodb.create-index-debug: disabled due to MDEV-13680
(the MySQL Bug #77497 fix was not merged from 5.6 to 5.7.10)
* innodb.innodb-alter-autoinc: MariaDB 10.2 behaves like MySQL 5.6/5.7,
while MariaDB 10.0 and 10.1 assign different values when
auto_increment_increment or auto_increment_offset are used.
Also MySQL 5.6/5.7 exhibit different behaviour between
LGORITHM=INPLACE and ALGORITHM=COPY, so something needs to be tested
and fixed in both MariaDB 10.0 and 10.2.
* innodb.innodb-wl5980-alter: disabled because it would trigger an
InnoDB assertion failure (MDEV-13668 may need additional effort in 10.2)
pull/185/merge
208 changed files with 10256 additions and 941 deletions
-
18client/mysqltest.cc
-
2cmake/wsrep.cmake
-
18debian/patches/50_mysql-test__db_test.dpatch
-
10include/wsrep.h
-
18mysql-test/include/fail_start_mysqld.inc
-
2mysql-test/include/galera_cluster.inc
-
14mysql-test/include/shutdown_mysqld.inc
-
3mysql-test/include/start_mysqld.inc
-
18mysql-test/include/wait_wsrep_ready.inc
-
181mysql-test/mysql-test-run.pl
-
2mysql-test/r/mysqld--help.result
-
39mysql-test/r/tc_heuristic_recover.result
-
1mysql-test/suite/encryption/disabled.def
-
102mysql-test/suite/galera/disabled.def
-
4mysql-test/suite/galera/galera_2nodes.cnf
-
4mysql-test/suite/galera/galera_2nodes_as_master.cnf
-
4mysql-test/suite/galera/galera_2nodes_as_master_slave.cnf
-
4mysql-test/suite/galera/galera_2nodes_as_master_with_repl_filter.cnf
-
4mysql-test/suite/galera/galera_2nodes_as_slave.cnf
-
6mysql-test/suite/galera/galera_3nodes_as_slave.cnf
-
2mysql-test/suite/galera/galera_4nodes.cnf
-
3mysql-test/suite/galera/r/GAL-401.result
-
1mysql-test/suite/galera/r/GAL-480.result
-
2mysql-test/suite/galera/r/MW-284.result
-
1mysql-test/suite/galera/r/MW-329.result
-
42mysql-test/suite/galera/r/MW-336.result
-
9mysql-test/suite/galera/r/MW-357.result
-
51mysql-test/suite/galera/r/MW-86-wait1.result
-
53mysql-test/suite/galera/r/MW-86-wait8.result
-
4mysql-test/suite/galera/r/basic.result
-
2mysql-test/suite/galera/r/galera_applier_ftwrl_table.result
-
2mysql-test/suite/galera/r/galera_applier_ftwrl_table_alter.result
-
4mysql-test/suite/galera/r/galera_as_slave_autoinc.result
-
5mysql-test/suite/galera/r/galera_bf_abort.result
-
2mysql-test/suite/galera/r/galera_bf_abort_flush_for_export.result
-
89mysql-test/suite/galera/r/galera_ddl_multiline.result
-
4mysql-test/suite/galera/r/galera_defaults.result
-
4mysql-test/suite/galera/r/galera_insert_ignore.result
-
19mysql-test/suite/galera/r/galera_ist_progress.result
-
17mysql-test/suite/galera/r/galera_ist_restart_joiner.result
-
3mysql-test/suite/galera/r/galera_kill_nochanges.result
-
2mysql-test/suite/galera/r/galera_log_output_csv.result
-
2mysql-test/suite/galera/r/galera_many_rows.result
-
2mysql-test/suite/galera/r/galera_parallel_apply_lock_table.result
-
2mysql-test/suite/galera/r/galera_parallel_simple.result
-
5mysql-test/suite/galera/r/galera_query_cache_sync_wait.result
-
3mysql-test/suite/galera/r/galera_suspend_slave.result
-
2mysql-test/suite/galera/r/galera_sync_wait_show.result
-
9mysql-test/suite/galera/r/galera_transaction_read_only.result
-
4mysql-test/suite/galera/r/galera_unicode_identifiers.result
-
81mysql-test/suite/galera/r/galera_var_dirty_reads.result
-
1mysql-test/suite/galera/r/galera_var_node_address.result
-
7mysql-test/suite/galera/r/galera_var_sync_wait.result
-
8mysql-test/suite/galera/r/galera_wsrep_provider_unset_set.result
-
3mysql-test/suite/galera/r/mysql-wsrep#198.result
-
1mysql-test/suite/galera/r/mysql-wsrep#201.result
-
20mysql-test/suite/galera/r/partition.result
-
3mysql-test/suite/galera/r/pxc-421.result
-
9mysql-test/suite/galera/suite.pm
-
5mysql-test/suite/galera/t/GAL-401.test
-
1mysql-test/suite/galera/t/MW-286.test
-
3mysql-test/suite/galera/t/MW-329.test
-
64mysql-test/suite/galera/t/MW-336.test
-
13mysql-test/suite/galera/t/MW-357.test
-
1mysql-test/suite/galera/t/MW-369.test
-
1mysql-test/suite/galera/t/MW-86-wait1-master.opt
-
106mysql-test/suite/galera/t/MW-86-wait1.test
-
1mysql-test/suite/galera/t/MW-86-wait8-master.opt
-
128mysql-test/suite/galera/t/MW-86-wait8.test
-
6mysql-test/suite/galera/t/galera#414.test
-
2mysql-test/suite/galera/t/galera_applier_ftwrl_table.test
-
2mysql-test/suite/galera/t/galera_applier_ftwrl_table_alter.test
-
2mysql-test/suite/galera/t/galera_as_slave_autoinc.test
-
2mysql-test/suite/galera/t/galera_bf_abort_flush_for_export.test
-
54mysql-test/suite/galera/t/galera_ddl_multiline.test
-
6mysql-test/suite/galera/t/galera_gcs_fc_limit.test
-
4mysql-test/suite/galera/t/galera_insert_ignore.test
-
1mysql-test/suite/galera/t/galera_ist_mysqldump.cnf
-
5mysql-test/suite/galera/t/galera_ist_progress.cnf
-
76mysql-test/suite/galera/t/galera_ist_progress.test
-
1mysql-test/suite/galera/t/galera_ist_recv_bind.test
-
34mysql-test/suite/galera/t/galera_ist_restart_joiner.test
-
2mysql-test/suite/galera/t/galera_ist_rsync.cnf
-
5mysql-test/suite/galera/t/galera_ist_rsync.test
-
2mysql-test/suite/galera/t/galera_many_rows.test
-
2mysql-test/suite/galera/t/galera_migrate.cnf
-
2mysql-test/suite/galera/t/galera_parallel_simple.test
-
5mysql-test/suite/galera/t/galera_query_cache_sync_wait.test
-
2mysql-test/suite/galera/t/galera_restart_on_unknown_option.test
-
1mysql-test/suite/galera/t/galera_ssl.test
-
1mysql-test/suite/galera/t/galera_ssl_compression.test
-
3mysql-test/suite/galera/t/galera_suspend_slave.test
-
3mysql-test/suite/galera/t/galera_sync_wait_show.test
-
4mysql-test/suite/galera/t/galera_unicode_identifiers.test
-
77mysql-test/suite/galera/t/galera_var_dirty_reads.test
-
2mysql-test/suite/galera/t/galera_var_node_address.test
-
5mysql-test/suite/galera/t/galera_var_sync_wait.test
-
9mysql-test/suite/galera/t/galera_wsrep_provider_unset_set.test
-
2mysql-test/suite/galera/t/lp1376747-4.test
-
3mysql-test/suite/galera/t/mysql-wsrep#198.test
@ -0,0 +1,18 @@ |
|||
# ==== Usage ==== |
|||
# |
|||
# [--let $restart_parameters= --innodb-force-recovery=0 --innodb-read-only=1] |
|||
# [--let $mysqld_stub_cmd= $MYSQLD_LAST_CMD] |
|||
# [--let $error_log= $MYSQLTEST_VARDIR/log/mysqld.1.err] |
|||
# --source include/fail_restart_mysqld.inc |
|||
|
|||
# Evaluate the default of $error_log |
|||
if (!$error_log) |
|||
{ |
|||
--let $error_log= $MYSQLTEST_VARDIR/log/mysqld.1.err |
|||
} |
|||
|
|||
--error 1 |
|||
--exec $mysqld_stub_cmd $restart_parameters >> $error_log 2>&1 |
|||
|
|||
# As the server is stopped |
|||
--disable_reconnect |
@ -0,0 +1,18 @@ |
|||
# |
|||
# If the wsrep plugin is loaded, wait until the wsrep provider becomes |
|||
# ready for use. |
|||
# |
|||
|
|||
--disable_query_log |
|||
--disable_result_log |
|||
|
|||
if (`SELECT COUNT(*)=1 FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'wsrep' AND PLUGIN_STATUS='ACTIVE'`) |
|||
{ |
|||
if (`SELECT @@GLOBAL.WSREP_ON`) |
|||
{ |
|||
--source include/galera_wait_ready.inc |
|||
} |
|||
} |
|||
|
|||
--enable_query_log |
|||
--enable_result_log |
@ -0,0 +1,39 @@ |
|||
call mtr.add_suppression("Can't init tc log"); |
|||
call mtr.add_suppression("Found 1 prepared transactions!"); |
|||
call mtr.add_suppression("Aborting"); |
|||
set debug_sync='RESET'; |
|||
CREATE TABLE t1 (i INT) ENGINE=InnoDB; |
|||
SET GLOBAL innodb_flush_log_at_trx_commit=1; |
|||
FLUSH TABLES; |
|||
connect con1,localhost,root,,; |
|||
set debug_sync='ha_commit_trans_after_prepare WAIT_FOR go'; |
|||
INSERT INTO t1 VALUES (1);; |
|||
connection default; |
|||
# Prove that no COMMIT or ROLLBACK occurred yet. |
|||
SELECT * FROM t1; |
|||
i |
|||
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; |
|||
SELECT * FROM t1; |
|||
i |
|||
1 |
|||
# Kill the server |
|||
FOUND 1 /was in the XA prepared state/ in mysqld.1.err |
|||
FOUND 1 /Found 1 prepared transactions!/ in mysqld.1.err |
|||
NOT FOUND /\[ERROR\] Can\'t init tc log/ in mysqld.1.err |
|||
FOUND 2 /was in the XA prepared state/ in mysqld.1.err |
|||
FOUND 1 /Found 1 prepared transactions!/ in mysqld.1.err |
|||
FOUND 1 /\[ERROR\] Can\'t init tc log/ in mysqld.1.err |
|||
FOUND 1 /Please restart mysqld without --tc-heuristic-recover/ in mysqld.1.err |
|||
FOUND 3 /was in the XA prepared state/ in mysqld.1.err |
|||
FOUND 1 /Found 1 prepared transactions!/ in mysqld.1.err |
|||
FOUND 2 /\[ERROR\] Can\'t init tc log/ in mysqld.1.err |
|||
FOUND 2 /Please restart mysqld without --tc-heuristic-recover/ in mysqld.1.err |
|||
FOUND 3 /was in the XA prepared state/ in mysqld.1.err |
|||
FOUND 1 /Found 1 prepared transactions!/ in mysqld.1.err |
|||
SET TRANSACTION ISOLATION LEVEL READ COMMITTED; |
|||
SELECT * FROM t1; |
|||
i |
|||
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; |
|||
SELECT * FROM t1; |
|||
i |
|||
DROP TABLE t1; |
@ -1,47 +1,57 @@ |
|||
galera_wsrep_provider_unset_set : lp1379204 'Unsupported protocol downgrade: incremental data collection disabled. Expect abort.' |
|||
galera_kill_nochanges : mysql-wsrep#24 Galera server does not restart properly if killed |
|||
galera_bf_abort_for_update : mysql-wsrep#26 SELECT FOR UPDATE sometimes allowed to proceed in the face of a concurrent update |
|||
galera_toi_ddl_fk_insert : qa#39 galera_toi_ddl_fk_insert fails sporadically |
|||
galera_binlog_row_image : MDEV-7471 - Enable binlog_row_image parameter in MariaDB |
|||
galera_binlog_rows_query_log_events : Unknown system variable 'binlog_rows_query_log_events' (see annotate_rows_log_event) |
|||
|
|||
galera_ist_mysqldump : Lost connection to MySQL server during query |
|||
galera_ist_xtrabackup-v2 : mysqltest failed but provided no output |
|||
galera_ist_innodb_flush_logs : mysqltest failed but provided no output |
|||
galera_sst_mysqldump : query 'show status' failed with wrong errno 1927 |
|||
galera_as_master_gtid : Needs to be re-worked |
|||
galera_as_master_gtid_change_master : Needs to be re-worked |
|||
galera_migrate : query 'let $success= `$wait_condition`' failed: 1146 |
|||
galera_var_notify_cmd : Result content mismatch |
|||
query_cache : Fails intermittently due to content mismatch. Needs to be investigated |
|||
basic : Fails intermittently without providing any output. Needs to be investigated |
|||
galera_var_auto_inc_control_on : Failing sporadically with content mismatch |
|||
galera_parallel_simple : Failing sporadically |
|||
galera_bf_abort : Failing sporadically |
|||
galera_log_output_csv : Failing sporadically |
|||
galera_as_slave_preordered : wsrep-preordered is not available in MariaDB Galera cluster |
|||
galera_gra_log : TODO: investigate |
|||
galera_as_slave_replication_bundle : TODO: investigate |
|||
galera_ssl_upgrade : TODO: investigate |
|||
mysql-wsrep#90 : TODO: investigate |
|||
galera_flush : mysql-wsrep/issues/229 |
|||
galera_transaction_read_only : mysql-wsrep/issues/229 |
|||
galera_gcs_fragment : Incorrect arguments to SET |
|||
galera_flush_local : Fails sporadically |
|||
galera_binlog_stmt_autoinc : TODO: investigate |
|||
galera_concurrent_ctas : Test times out, investigate |
|||
MW-286 : TODO: investigate |
|||
galera_sst_xtrabackup-v2-options : TODO: Fix test case |
|||
galera_sst_xtrabackup-v2 : MDEV-11208 |
|||
galera_sst_xtrabackup-v2_encrypt_with_key : MDEV-11208 |
|||
mysql-wsrep#33 : TODO: investigate |
|||
############################################################################## |
|||
# |
|||
# List the test cases that are to be disabled temporarily. |
|||
# |
|||
# Separate the test case name and the comment with ':'. |
|||
# |
|||
# <testcasename> : MDEV-<xxxx> <comment> |
|||
# |
|||
# Do not use any TAB characters for whitespace. |
|||
# |
|||
############################################################################## |
|||
MW-336 : MDEV-13549 Galera test failures |
|||
galera_gra_log : MDEV-13549 Galera test failures |
|||
galera_flush_local : MDEV-13549 Galera test failures |
|||
galera_flush : MDEV-13549 Galera test failures |
|||
MW-329 : MDEV-13549 Galera test failures |
|||
galera_account_management : MariaDB 10.0 does not support ALTER USER |
|||
galera_binlog_row_image : MariaDB 10.0 does not support binlog_row_image |
|||
galera_binlog_rows_query_log_events: MariaDB does not support binlog_rows_query_log_events |
|||
GAL-419 : MDEV-13549 Galera test failures |
|||
galera_toi_ddl_fk_insert : MDEV-13549 Galera test failures |
|||
galera_var_notify_cmd : MDEV-13549 Galera test failures |
|||
galera_var_slave_threads : MDEV-13549 Galera test failures |
|||
mysql-wsrep#90 : MDEV-13549 Galera test failures |
|||
galera_as_master_gtid : Requires MySQL GTID |
|||
galera_as_master_gtid_change_master : Requires MySQL GTID |
|||
galera_as_slave_replication_bundle : MDEV-13549 Galera test failures |
|||
galera_as_slave_preordered : wsrep-preordered feature not merged to MariaDB |
|||
galera_gcs_fragment : MDEV-13549 Galera test failures |
|||
galera_gcache_recover : MDEV-13549 Galera test failures |
|||
galera_gcache_recover_full_gcache : MDEV-13549 Galera test failures |
|||
galera_gcache_recover_manytrx : MDEV-13549 Galera test failures |
|||
galera_ist_mysqldump : MDEV-13549 Galera test failures |
|||
mysql-wsrep#31 : MDEV-13549 Galera test failures |
|||
galera_migrate : MariaDB 10.0 does not support START SLAVE USER |
|||
galera_concurrent_ctas : MDEV-13549 Galera test failures |
|||
galera_bf_abort_for_update : MDEV-13549 Galera test failures |
|||
galera_wsrep_desync_wsrep_on : MDEV-13549 Galera test failures |
|||
galera_ssl_upgrade : MDEV-13549 Galera test failures |
|||
mysql-wsrep#33 : MDEV-13549 Galera test failures |
|||
galera_var_auto_inc_control_on : MDEV-13549 Galera test failures |
|||
MW-44 : MDEV-13549 Galera test failures |
|||
galera_var_retry_autocommit : MDEV-13549 Galera test failures |
|||
pxc-421 : MDEV-13549 Galera test failures |
|||
lp1376747-2 : MDEV-13549 Galera test failures |
|||
lp1376747 : MDEV-13549 Galera test failures |
|||
galera_toi_ddl_nonconflicting : MDEV-13549 Galera test failures |
|||
galera_parallel_simple : MDEV-13549 Galera test failures |
|||
galera_admin : MDEV-13549 Galera test failures |
|||
galera_var_max_ws_rows : MDEV-13549 Galera test failures 10.1 |
|||
MW-286 : MDEV-13549 Galera test failures 10.1 |
|||
galera_as_master: MDEV-13549 Galera test failures 10.1 |
|||
galera_pc_ignore_sb : MDEV-13549 Galera test failures 10.1 |
|||
galera_lock_table : MDEV-13549 Galera test failures 10.1 |
|||
MW-284 : MDEV-13549 Galera test failures 10.1 |
|||
galera_as_slave : MDEV-13549 Galera test failures 10.1 |
|||
galera_var_innodb_disallow_writes : MDEV-10949 |
|||
MW-258 : MDEV-11229 |
|||
galera_as_master : MDEV-11229 |
|||
MW-44 : MDEV-11229 |
|||
galera_gcs_fc_limit : MDEV-11229 |
|||
galera_roles : MDEV-11229 |
|||
galera_lock_table : MDEV-11229 |
|||
GAL-480 : Investigate |
|||
galera_fk_no_pk :Investigate |
|||
galera_account_management : Investigate |
@ -0,0 +1,42 @@ |
|||
CREATE TABLE t1 (f1 INTEGER) Engine=InnoDB; |
|||
SET GLOBAL wsrep_slave_threads = 10; |
|||
SET GLOBAL wsrep_slave_threads = 1; |
|||
INSERT INTO t1 VALUES (1); |
|||
SET GLOBAL wsrep_slave_threads = 10; |
|||
SELECT COUNT(*) = 11 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'; |
|||
COUNT(*) = 11 |
|||
1 |
|||
SET GLOBAL wsrep_slave_threads = 20; |
|||
SELECT COUNT(*) = 21 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'; |
|||
COUNT(*) = 21 |
|||
1 |
|||
SET GLOBAL wsrep_slave_threads = 1; |
|||
INSERT INTO t1 VALUES (1); |
|||
INSERT INTO t1 VALUES (2); |
|||
INSERT INTO t1 VALUES (3); |
|||
INSERT INTO t1 VALUES (4); |
|||
INSERT INTO t1 VALUES (5); |
|||
INSERT INTO t1 VALUES (6); |
|||
INSERT INTO t1 VALUES (7); |
|||
INSERT INTO t1 VALUES (8); |
|||
INSERT INTO t1 VALUES (9); |
|||
SET GLOBAL wsrep_slave_threads = 10; |
|||
SET GLOBAL wsrep_slave_threads = 0; |
|||
Warnings: |
|||
Warning 1292 Truncated incorrect wsrep_slave_threads value: '0' |
|||
INSERT INTO t1 VALUES (10); |
|||
INSERT INTO t1 VALUES (11); |
|||
INSERT INTO t1 VALUES (12); |
|||
INSERT INTO t1 VALUES (13); |
|||
INSERT INTO t1 VALUES (14); |
|||
INSERT INTO t1 VALUES (15); |
|||
INSERT INTO t1 VALUES (16); |
|||
INSERT INTO t1 VALUES (17); |
|||
INSERT INTO t1 VALUES (18); |
|||
INSERT INTO t1 VALUES (19); |
|||
INSERT INTO t1 VALUES (20); |
|||
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'; |
|||
COUNT(*) = 2 |
|||
1 |
|||
SET GLOBAL wsrep_slave_threads = 1; |
|||
DROP TABLE t1; |
@ -0,0 +1,9 @@ |
|||
connection node_2; |
|||
SET GLOBAL wsrep_slave_threads = 0; |
|||
Warnings: |
|||
Warning 1292 Truncated incorrect wsrep_slave_threads value: '0' |
|||
connection node_1; |
|||
CREATE TABLE t1 (f1 INT PRIMARY KEY) Engine=InnoDB; |
|||
connection node_1; |
|||
INSERT INTO t1 VALUES (1); |
|||
DROP TABLE t1; |
@ -0,0 +1,51 @@ |
|||
connection node_2; |
|||
SELECT @@debug_sync; |
|||
@@debug_sync |
|||
ON - current signal: '' |
|||
SET SESSION wsrep_sync_wait = 1; |
|||
SET GLOBAL debug = "+d,sync.wsrep_apply_cb"; |
|||
Warnings: |
|||
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead |
|||
connection node_1; |
|||
CREATE TABLE t_wait1 (f1 INTEGER) ENGINE=InnoDB; |
|||
INSERT INTO t_wait1 VALUES (1); |
|||
connection node_2; |
|||
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached"; |
|||
SHOW BINARY LOGS; |
|||
SHOW BINLOG EVENTS; |
|||
SHOW COLUMNS FROM t1; |
|||
SHOW CREATE EVENT e1; |
|||
SHOW CREATE FUNCTION f1; |
|||
SHOW CREATE PROCEDURE p1; |
|||
SHOW CREATE TABLE t1; |
|||
SHOW CREATE TRIGGER tr1; |
|||
SHOW CREATE VIEW v1; |
|||
SHOW DATABASES; |
|||
SHOW ENGINE InnoDB STATUS; |
|||
SHOW FUNCTION CODE f1; |
|||
SHOW FUNCTION STATUS; |
|||
SHOW GRANTS FOR 'root'@'localhost'; |
|||
SHOW INDEX FROM t1; |
|||
SHOW OPEN TABLES; |
|||
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'; |
|||
SHOW WARNINGS; |
|||
SET GLOBAL debug = "-d,sync.wsrep_apply_cb"; |
|||
Warnings: |
|||
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead |
|||
SET SESSION debug_sync = "now SIGNAL signal.wsrep_apply_cb"; |
|||
SET SESSION wsrep_sync_wait = default; |
|||
DROP TABLE t_wait1; |
|||
SET GLOBAL debug = NULL; |
|||
Warnings: |
|||
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead |
|||
SET debug_sync='RESET'; |
|||
SELECT @@debug_sync; |
|||
@@debug_sync |
|||
ON - current signal: '' |
@ -0,0 +1,53 @@ |
|||
connection node_2; |
|||
SELECT @@debug_sync; |
|||
@@debug_sync |
|||
ON - current signal: '' |
|||
SET SESSION wsrep_sync_wait = 8; |
|||
SET GLOBAL debug = "+d,sync.wsrep_apply_cb"; |
|||
Warnings: |
|||
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead |
|||
connection node_1; |
|||
CREATE TABLE t_wait8 (f1 INTEGER) ENGINE=InnoDB; |
|||
INSERT INTO t_wait8 VALUES (1); |
|||
connection node_2; |
|||
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S"; |
|||
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached"; |
|||
SHOW BINARY LOGS; |
|||
SHOW BINLOG EVENTS; |
|||
SHOW COLUMNS FROM t1; |
|||
SHOW CREATE DATABASE db1; |
|||
SHOW CREATE EVENT e1; |
|||
SHOW CREATE FUNCTION f1; |
|||
SHOW CREATE PROCEDURE p1; |
|||
SHOW CREATE TABLE t1; |
|||
SHOW CREATE TRIGGER tr1; |
|||
SHOW CREATE VIEW v1; |
|||
SHOW DATABASES; |
|||
SHOW ENGINE InnoDB STATUS; |
|||
SHOW FUNCTION CODE f1; |
|||
SHOW FUNCTION STATUS; |
|||
SHOW GRANTS FOR 'root'@'localhost'; |
|||
SHOW INDEX FROM t1; |
|||
SHOW OPEN TABLES; |
|||
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'; |
|||
SHOW WARNINGS; |
|||
SET GLOBAL debug = "-d,sync.wsrep_apply_cb"; |
|||
Warnings: |
|||
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead |
|||
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb"; |
|||
SET SESSION wsrep_sync_wait = default; |
|||
DROP TABLE t_wait8; |
|||
SET GLOBAL debug = NULL; |
|||
Warnings: |
|||
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead |
|||
SET debug_sync='RESET'; |
|||
SELECT @@debug_sync; |
|||
@@debug_sync |
|||
ON - current signal: '' |
@ -0,0 +1,89 @@ |
|||
connection node_1; |
|||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
|||
CREATE TABLE t2 (f1 INTEGER) ENGINE=InnoDB; |
|||
SHOW CREATE TABLE t1; |
|||
Table Create Table |
|||
t1 CREATE TABLE `t1` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
SHOW CREATE TABLE t2; |
|||
Table Create Table |
|||
t2 CREATE TABLE `t2` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
connection node_2; |
|||
SHOW CREATE TABLE t1; |
|||
Table Create Table |
|||
t1 CREATE TABLE `t1` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
SHOW CREATE TABLE t2; |
|||
Table Create Table |
|||
t2 CREATE TABLE `t2` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
connection node_1; |
|||
CREATE TABLE t3 (f1 INTEGER) ENGINE=InnoDB; CREATE TABLE t4 (f1 INTEGER) ENGINE=InnoDB;; |
|||
SHOW CREATE TABLE t3; |
|||
Table Create Table |
|||
t3 CREATE TABLE `t3` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
SHOW CREATE TABLE t4; |
|||
Table Create Table |
|||
t4 CREATE TABLE `t4` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
connection node_2; |
|||
SHOW CREATE TABLE t3; |
|||
Table Create Table |
|||
t3 CREATE TABLE `t3` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
SHOW CREATE TABLE t4; |
|||
Table Create Table |
|||
t4 CREATE TABLE `t4` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
connection node_1; |
|||
INSERT INTO t1 VALUES (1); |
|||
CREATE TABLE t5 (f1 INTEGER) ENGINE=InnoDB; |
|||
SELECT COUNT(*) = 1 FROM t1; |
|||
COUNT(*) = 1 |
|||
1 |
|||
SHOW CREATE TABLE t5; |
|||
Table Create Table |
|||
t5 CREATE TABLE `t5` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
connection node_2; |
|||
SELECT COUNT(*) = 1 FROM t1; |
|||
COUNT(*) = 1 |
|||
1 |
|||
SHOW CREATE TABLE t5; |
|||
Table Create Table |
|||
t5 CREATE TABLE `t5` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
connection node_1; |
|||
CREATE TABLE t6 (f1 INTEGER) ENGINE=InnoDB; INSERT INTO t2 VALUES (1);; |
|||
SELECT COUNT(*) = 1 FROM t2; |
|||
COUNT(*) = 1 |
|||
1 |
|||
SHOW CREATE TABLE t6; |
|||
Table Create Table |
|||
t6 CREATE TABLE `t6` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
connection node_2; |
|||
SELECT COUNT(*) = 1 FROM t2; |
|||
COUNT(*) = 1 |
|||
1 |
|||
SHOW CREATE TABLE t6; |
|||
Table Create Table |
|||
t6 CREATE TABLE `t6` ( |
|||
`f1` int(11) DEFAULT NULL |
|||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|||
include/diff_servers.inc [servers=1 2] |
|||
connection node_1; |
|||
DROP TABLE t1, t2, t3, t4, t5, t6; |
@ -0,0 +1,19 @@ |
|||
SET GLOBAL wsrep_provider_options = 'gmcast.isolate = 1'; |
|||
SET SESSION wsrep_on = OFF; |
|||
SET SESSION wsrep_on = ON; |
|||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
INSERT INTO t1 VALUES (2); |
|||
INSERT INTO t1 VALUES (3); |
|||
INSERT INTO t1 VALUES (4); |
|||
INSERT INTO t1 VALUES (5); |
|||
INSERT INTO t1 VALUES (6); |
|||
INSERT INTO t1 VALUES (7); |
|||
INSERT INTO t1 VALUES (8); |
|||
INSERT INTO t1 VALUES (9); |
|||
INSERT INTO t1 VALUES (10); |
|||
SET GLOBAL wsrep_provider_options = 'gmcast.isolate = 0'; |
|||
include/assert_grep.inc [Receiving IST: 11 writesets, seqnos] |
|||
include/assert_grep.inc [Receiving IST\.\.\. 0\.0% \( 0/11 events\) complete] |
|||
include/assert_grep.inc [Receiving IST\.\.\.100\.0% \(11/11 events\) complete] |
|||
DROP TABLE t1; |
@ -1,21 +1,30 @@ |
|||
connection node_1; |
|||
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB; |
|||
connection node_2; |
|||
connection node_1; |
|||
SET AUTOCOMMIT=OFF; |
|||
START TRANSACTION; |
|||
COMMIT; |
|||
connection node_2; |
|||
wsrep_last_committed_diff |
|||
1 |
|||
connection node_2; |
|||
connection node_1; |
|||
START TRANSACTION READ ONLY; |
|||
SELECT COUNT(*) = 0 FROM t1; |
|||
COUNT(*) = 0 |
|||
1 |
|||
COMMIT; |
|||
connection node_2; |
|||
wsrep_last_committed_diff |
|||
1 |
|||
connection node_1; |
|||
START TRANSACTION; |
|||
SELECT COUNT(*) = 0 FROM t1; |
|||
COUNT(*) = 0 |
|||
1 |
|||
COMMIT; |
|||
connection node_2; |
|||
wsrep_last_committed_diff |
|||
1 |
|||
DROP TABLE t1; |
@ -1,12 +1,20 @@ |
|||
connection node_1; |
|||
connection node_2; |
|||
connection node_1; |
|||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
connection node_2; |
|||
SET GLOBAL wsrep_provider='none'; |
|||
INSERT INTO t1 VALUES (2); |
|||
connection node_1; |
|||
INSERT INTO t1 VALUES (3); |
|||
connection node_2; |
|||
SET SESSION wsrep_sync_wait = 0; |
|||
INSERT INTO t1 VALUES (4); |
|||
SELECT COUNT(*) = 4 FROM t1; |
|||
COUNT(*) = 4 |
|||
1 |
|||
connection node_1; |
|||
SELECT COUNT(*) = 3 FROM t1; |
|||
COUNT(*) = 3 |
|||
1 |
|||
|
@ -0,0 +1,64 @@ |
|||
# |
|||
# MW-336 Slave threads may leak if variable wsrep_slave_threads is set repeatedly |
|||
# |
|||
|
|||
--source include/galera_cluster.inc |
|||
--source include/have_innodb.inc |
|||
|
|||
CREATE TABLE t1 (f1 INTEGER) Engine=InnoDB; |
|||
|
|||
--connection node_1 |
|||
SET GLOBAL wsrep_slave_threads = 10; |
|||
SET GLOBAL wsrep_slave_threads = 1; |
|||
|
|||
--connection node_2 |
|||
INSERT INTO t1 VALUES (1); |
|||
|
|||
--connection node_1 |
|||
--sleep 0.5 |
|||
SET GLOBAL wsrep_slave_threads = 10; |
|||
--sleep 0.5 |
|||
SELECT COUNT(*) = 11 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'; |
|||
|
|||
SET GLOBAL wsrep_slave_threads = 20; |
|||
--sleep 0.5 |
|||
SELECT COUNT(*) = 21 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'; |
|||
|
|||
|
|||
SET GLOBAL wsrep_slave_threads = 1; |
|||
|
|||
--connection node_2 |
|||
INSERT INTO t1 VALUES (1); |
|||
INSERT INTO t1 VALUES (2); |
|||
INSERT INTO t1 VALUES (3); |
|||
INSERT INTO t1 VALUES (4); |
|||
INSERT INTO t1 VALUES (5); |
|||
INSERT INTO t1 VALUES (6); |
|||
INSERT INTO t1 VALUES (7); |
|||
INSERT INTO t1 VALUES (8); |
|||
INSERT INTO t1 VALUES (9); |
|||
|
|||
|
|||
--connection node_1 |
|||
SET GLOBAL wsrep_slave_threads = 10; |
|||
SET GLOBAL wsrep_slave_threads = 0; |
|||
|
|||
--connection node_2 |
|||
INSERT INTO t1 VALUES (10); |
|||
INSERT INTO t1 VALUES (11); |
|||
INSERT INTO t1 VALUES (12); |
|||
INSERT INTO t1 VALUES (13); |
|||
INSERT INTO t1 VALUES (14); |
|||
INSERT INTO t1 VALUES (15); |
|||
INSERT INTO t1 VALUES (16); |
|||
INSERT INTO t1 VALUES (17); |
|||
INSERT INTO t1 VALUES (18); |
|||
INSERT INTO t1 VALUES (19); |
|||
INSERT INTO t1 VALUES (20); |
|||
|
|||
--connection node_1 |
|||
--sleep 0.5 |
|||
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user'; |
|||
|
|||
SET GLOBAL wsrep_slave_threads = 1; |
|||
DROP TABLE t1; |
@ -0,0 +1,13 @@ |
|||
--source include/galera_cluster.inc |
|||
--source include/have_innodb.inc |
|||
|
|||
--connection node_2 |
|||
SET GLOBAL wsrep_slave_threads = 0; |
|||
|
|||
--connection node_1 |
|||
CREATE TABLE t1 (f1 INT PRIMARY KEY) Engine=InnoDB; |
|||
|
|||
--connection node_1 |
|||
INSERT INTO t1 VALUES (1); |
|||
|
|||
DROP TABLE t1; |
@ -0,0 +1 @@ |
|||
--log-bin --log-slave-updates |
@ -0,0 +1,106 @@ |
|||
# |
|||
# SHOW commands no longer obey wsrep_sync_wait = 1 (WSREP_SYNC_WAIT_BEFORE_READ) |
|||
# (they do not wait for the background INSERT in the applier in node_2 to |
|||
# complete) |
|||
# |
|||
--source include/galera_cluster.inc |
|||
--source include/have_binlog_format_row.inc |
|||
--source include/have_debug_sync.inc |
|||
|
|||
--connection node_2 |
|||
# Make sure no signals have been leftover from previous tests to surprise us. |
|||
SELECT @@debug_sync; |
|||
|
|||
SET SESSION wsrep_sync_wait = 1; |
|||
SET GLOBAL debug = "+d,sync.wsrep_apply_cb"; |
|||
|
|||
--connection node_1 |
|||
CREATE TABLE t_wait1 (f1 INTEGER) ENGINE=InnoDB; |
|||
# This will complete in node_1 but will start a background apply in node_2 |
|||
# which will stop because of sync.wsrep_apply_cb we set above. |
|||
INSERT INTO t_wait1 VALUES (1); |
|||
|
|||
--connection node_2 |
|||
|
|||
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached"; |
|||
|
|||
--disable_result_log |
|||
|
|||
SHOW BINARY LOGS; |
|||
|
|||
SHOW BINLOG EVENTS; |
|||
|
|||
--error ER_NO_SUCH_TABLE |
|||
SHOW COLUMNS FROM t1; |
|||
|
|||
--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; |
|||
|
|||
--enable_result_log |
|||
|
|||
# Unblock the background INSERT and remove the sync point. |
|||
SET GLOBAL debug = "-d,sync.wsrep_apply_cb"; |
|||
SET SESSION debug_sync = "now SIGNAL signal.wsrep_apply_cb"; |
|||
|
|||
SET SESSION wsrep_sync_wait = default; |
|||
|
|||
# This will wait for the background INSERT to complete before we quit |
|||
# from the test. |
|||
DROP TABLE t_wait1; |
|||
|
|||
SET GLOBAL debug = NULL; |
|||
SET debug_sync='RESET'; |
|||
|
|||
# Make sure no pending signals are leftover to surprise subsequent tests. |
|||
SELECT @@debug_sync; |
@ -0,0 +1 @@ |
|||
--log-bin --log-slave-updates |
@ -0,0 +1,128 @@ |
|||
# |
|||
# SHOW commands now obey wsrep_sync_wait = 8 (WSREP_SYNC_WAIT_BEFORE_SHOW) |
|||
# |
|||
--source include/galera_cluster.inc |
|||
--source include/have_binlog_format_row.inc |
|||
--source include/have_debug_sync.inc |
|||
|
|||
--connection node_2 |
|||
# Make sure no signals have been leftover from previous tests to surprise us. |
|||
SELECT @@debug_sync; |
|||
|
|||
SET SESSION wsrep_sync_wait = 8; |
|||
SET GLOBAL debug = "+d,sync.wsrep_apply_cb"; |
|||
|
|||
--connection node_1 |
|||
CREATE TABLE t_wait8 (f1 INTEGER) ENGINE=InnoDB; |
|||
# This will complete in node_1 but will start a background apply in node_2 |
|||
# which will stop because of sync.wsrep_apply_cb we set above. |
|||
INSERT INTO t_wait8 VALUES (1); |
|||
|
|||
--connection node_2 |
|||
|
|||
--let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options` |
|||
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S"; |
|||
|
|||
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached"; |
|||
|
|||
--disable_result_log |
|||
|
|||
--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; |
|||
|
|||
--error ER_LOCK_WAIT_TIMEOUT |
|||
SHOW CREATE DATABASE db1; |
|||
|
|||
--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; |
|||
|
|||
--enable_result_log |
|||
|
|||
--disable_query_log |
|||
--eval SET GLOBAL wsrep_provider_options = "$wsrep_provider_options_orig" |
|||
--enable_query_log |
|||
|
|||
# Unblock the background INSERT and remove the sync point. |
|||
SET GLOBAL debug = "-d,sync.wsrep_apply_cb"; |
|||
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb"; |
|||
|
|||
SET SESSION wsrep_sync_wait = default; |
|||
|
|||
# This will wait for the background INSERT to complete before we quit |
|||
# from the test. |
|||
DROP TABLE t_wait8; |
|||
|
|||
SET GLOBAL debug = NULL; |
|||
SET debug_sync='RESET'; |
|||
|
|||
# Make sure no pending signals are leftover to surprise subsequent tests. |
|||
SELECT @@debug_sync; |
@ -0,0 +1,54 @@ |
|||
# |
|||
# Test that Galera works correctly with multiline statements, in particular involving DDLs |
|||
# |
|||
|
|||
--source include/galera_cluster.inc |
|||
|
|||
--connection node_1 |
|||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; CREATE TABLE t2 (f1 INTEGER) ENGINE=InnoDB; |
|||
|
|||
SHOW CREATE TABLE t1; |
|||
SHOW CREATE TABLE t2; |
|||
|
|||
--connection node_2 |
|||
SHOW CREATE TABLE t1; |
|||
SHOW CREATE TABLE t2; |
|||
|
|||
--connection node_1 |
|||
--send CREATE TABLE t3 (f1 INTEGER) ENGINE=InnoDB; CREATE TABLE t4 (f1 INTEGER) ENGINE=InnoDB; |
|||
--reap |
|||
|
|||
SHOW CREATE TABLE t3; |
|||
SHOW CREATE TABLE t4; |
|||
|
|||
--connection node_2 |
|||
SHOW CREATE TABLE t3; |
|||
SHOW CREATE TABLE t4; |
|||
|
|||
--connection node_1 |
|||
INSERT INTO t1 VALUES (1); CREATE TABLE t5 (f1 INTEGER) ENGINE=InnoDB; |
|||
|
|||
SELECT COUNT(*) = 1 FROM t1; |
|||
SHOW CREATE TABLE t5; |
|||
|
|||
--connection node_2 |
|||
SELECT COUNT(*) = 1 FROM t1; |
|||
SHOW CREATE TABLE t5; |
|||
|
|||
--connection node_1 |
|||
--send CREATE TABLE t6 (f1 INTEGER) ENGINE=InnoDB; INSERT INTO t2 VALUES (1); |
|||
--reap |
|||
|
|||
SELECT COUNT(*) = 1 FROM t2; |
|||
SHOW CREATE TABLE t6; |
|||
|
|||
--connection node_2 |
|||
SELECT COUNT(*) = 1 FROM t2; |
|||
SHOW CREATE TABLE t6; |
|||
|
|||
--let $diff_servers = 1 2 |
|||
--source include/diff_servers.inc |
|||
|
|||
--connection node_1 |
|||
DROP TABLE t1, t2, t3, t4, t5, t6; |
|||
|
@ -0,0 +1,5 @@ |
|||
!include ../galera_2nodes.cnf |
|||
|
|||
[mysqld.1] |
|||
wsrep_provider_options='base_port=@mysqld.1.#galera_port;pc.ignore_sb=true' |
|||
|
@ -0,0 +1,76 @@ |
|||
# |
|||
# Test progress output during IST |
|||
# |
|||
|
|||
--source include/galera_cluster.inc |
|||
# This could cause out of storage if run /dev/shm |
|||
--source include/big_test.inc |
|||
|
|||
# Isolate node #2 |
|||
--connection node_2 |
|||
SET GLOBAL wsrep_provider_options = 'gmcast.isolate = 1'; |
|||
|
|||
--connection node_1 |
|||
--let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
|||
--source include/wait_condition.inc |
|||
|
|||
--connection node_2 |
|||
SET SESSION wsrep_on = OFF; |
|||
--let $wait_condition = SELECT VARIABLE_VALUE = 'non-Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status'; |
|||
--source include/wait_condition.inc |
|||
SET SESSION wsrep_on = ON; |
|||
|
|||
# Node #2 is now isolated. Run some transactions to accumulate writesets for IST |
|||
|
|||
--connection node_1 |
|||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
INSERT INTO t1 VALUES (2); |
|||
INSERT INTO t1 VALUES (3); |
|||
INSERT INTO t1 VALUES (4); |
|||
INSERT INTO t1 VALUES (5); |
|||
INSERT INTO t1 VALUES (6); |
|||
INSERT INTO t1 VALUES (7); |
|||
INSERT INTO t1 VALUES (8); |
|||
INSERT INTO t1 VALUES (9); |
|||
INSERT INTO t1 VALUES (10); |
|||
|
|||
# Restore node #2, IST is performed |
|||
|
|||
--connection node_2 |
|||
SET GLOBAL wsrep_provider_options = 'gmcast.isolate = 0'; |
|||
|
|||
--connection node_1 |
|||
--let $wait_condition = SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; |
|||
--source include/wait_condition.inc |
|||
|
|||
--connection node_2 |
|||
--let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status'; |
|||
--source include/wait_condition.inc |
|||
|
|||
# |
|||
# Grep for expected IST output in joiner log |
|||
# |
|||
|
|||
--connection node_1 |
|||
|
|||
--let $assert_count = 1 |
|||
--let $assert_file = $MYSQLTEST_VARDIR/log/mysqld.2.err |
|||
--let $assert_only_after = Need state transfer |
|||
|
|||
--let $assert_text = Receiving IST: 11 writesets, seqnos |
|||
--let $assert_select = Receiving IST: 11 writesets, seqnos |
|||
--source include/assert_grep.inc |
|||
|
|||
--let $assert_text = Receiving IST\.\.\. 0\.0% \( 0/11 events\) complete |
|||
--let $assert_select = Receiving IST\.\.\. 0\.0% \( 0/11 events\) complete |
|||
--source include/assert_grep.inc |
|||
|
|||
--let $assert_text = Receiving IST\.\.\.100\.0% \(11/11 events\) complete |
|||
--let $assert_select = Receiving IST\.\.\.100\.0% \(11/11 events\) complete |
|||
--source include/assert_grep.inc |
|||
|
|||
# Cleanup |
|||
|
|||
--connection node_1 |
|||
DROP TABLE t1; |
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue