mirror of
https://github.com/MariaDB/server.git
synced 2025-03-29 18:35:35 +01:00
galera mtr tests: fixes for test failures, 'cosmetic' changes and unification between versions
This commit is contained in:
parent
c35b6f133a
commit
7b040e53cc
161 changed files with 215 additions and 321 deletions
mysql-test/suite/galera
r
MDEV-20225.resultMDEV-20793.resultMDEV-25389.resultgalera_applier_ftwrl_table_alter.resultgalera_ddl_fk_conflict.resultgalera_parallel_apply_lock_table.resultgalera_parallel_simple.resultgalera_var_slave_threads.resultwsrep_strict_ddl.result
suite.pmt
MDEV-10715.cnfMDEV-15443.cnfMDEV-20225.testMDEV-20793.testMDEV-22227.testMDEV-22708.cnfMDEV-24143.testMDEV-24327.cnfMDEV-25389.testMDEV-25731.testMDEV-26597.testMDEV-27123.optMDEV-29293.testMDEV-29512.cnfMDEV-6860.cnfMW-259.testMW-313.cnfMW-360-master.optMW-369.incMW-86-wait8.cnfcreate.testgalera_MDEV-29512.cnfgalera_applier_ftwrl_table.testgalera_applier_ftwrl_table_alter.cnfgalera_applier_ftwrl_table_alter.testgalera_as_slave_ctas.testgalera_backup_stage.testgalera_bf_abort_at_after_statement.testgalera_bf_abort_flush_for_export.testgalera_bf_abort_lock_table.cnfgalera_bf_abort_lock_table.testgalera_bf_abort_ps.cnfgalera_bf_background_statistics.cnfgalera_bf_background_statistics.testgalera_bf_kill.testgalera_bf_lock_wait.testgalera_binlog_checksum.cnfgalera_binlog_event_max_size_max.cnfgalera_binlog_event_max_size_min.cnfgalera_binlog_event_max_size_min.testgalera_binlog_row_image.testgalera_change_user.testgalera_concurrent_ctas.testgalera_ddl_fk_conflict.cnfgalera_ddl_fk_conflict.testgalera_ddl_multiline.testgalera_encrypt_tmp_files.cnfgalera_forced_binlog_format.testgalera_gcs_fragment.cnfgalera_gcs_max_packet_size.cnfgalera_gtid.cnfgalera_gtid_server_id.cnfgalera_gtid_slave.cnfgalera_gtid_slave_sst_rsync.cnfgalera_gtid_trx_conflict.cnfgalera_insert_ignore.testgalera_insert_multi.testgalera_ist_progress.cnfgalera_ist_recv_bind.cnfgalera_kill_applier.cnfgalera_load_data.testgalera_mdev_13787.cnfgalera_mdev_13787.testgalera_mdev_15611.cnfgalera_mdl_race.testgalera_nonPK_and_PA.testgalera_nopk_unicode.testgalera_parallel_apply_lock_table.testgalera_parallel_autoinc_largetrx.testgalera_parallel_autoinc_manytrx.testgalera_parallel_simple.testgalera_pc_ignore_sb.cnfgalera_query_cache.cnfgalera_query_cache_sync_wait.cnfgalera_repl_key_format_flat16.testgalera_restart_nochanges.testgalera_restart_replica.cnfgalera_savepoint_replay.testgalera_server.testgalera_set_position_after_cert_failure.testgalera_sp_bf_abort.incgalera_sql_log_bin_zero.testgalera_status_cluster.testgalera_status_local_index.testgalera_status_local_state.testgalera_suspend_slave.testgalera_sync_wait_upto-master.optgalera_table_with_hyphen.incgalera_temporary_sequences.testgalera_threadpool.cnf
|
@ -15,7 +15,7 @@ connection node_2a;
|
|||
SET GLOBAL debug_dbug = 'RESET';
|
||||
SET DEBUG_SYNC = 'now SIGNAL signal.mdev_20225_continue';
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
SET GLOBAL wsrep_slave_threads = 1;
|
||||
SET GLOBAL wsrep_slave_threads = DEFAULT;
|
||||
connection node_2;
|
||||
SHOW TRIGGERS;
|
||||
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||
|
|
|
@ -41,4 +41,4 @@ connection node_1;
|
|||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||
SET debug_sync = "RESET";
|
||||
DROP TABLE t1;
|
||||
SET GLOBAL wsrep_slave_threads = 1;
|
||||
SET GLOBAL wsrep_slave_threads = DEFAULT;
|
||||
|
|
|
@ -15,3 +15,4 @@ SET GLOBAL wsrep_slave_threads=1;
|
|||
SELECT @@wsrep_slave_threads;
|
||||
@@wsrep_slave_threads
|
||||
1
|
||||
connection node_2;
|
||||
|
|
|
@ -13,7 +13,7 @@ connection node_1;
|
|||
SELECT 1 FROM DUAL;
|
||||
1
|
||||
1
|
||||
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock';
|
||||
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
COUNT(*) = 1
|
||||
1
|
||||
UNLOCK TABLES;
|
||||
|
@ -25,7 +25,7 @@ t1 CREATE TABLE `t1` (
|
|||
`f2` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`f1`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
||||
SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock';
|
||||
SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
COUNT(*) = 0
|
||||
1
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -298,6 +298,7 @@ DROP TABLE p1, p2;
|
|||
######################################################################
|
||||
connection node_1;
|
||||
SET SESSION wsrep_sync_wait=0;
|
||||
FLUSH STATUS;
|
||||
CREATE TABLE p1 (pk INTEGER PRIMARY KEY, f2 CHAR(30));
|
||||
INSERT INTO p1 VALUES (1, 'INITIAL VALUE');
|
||||
CREATE TABLE p2 (pk INTEGER PRIMARY KEY, f2 CHAR(30));
|
||||
|
@ -491,6 +492,7 @@ Note 1051 Unknown table 'test.tmp1,test.tmp2'
|
|||
######################################################################
|
||||
connection node_1;
|
||||
SET SESSION wsrep_sync_wait=0;
|
||||
FLUSH STATUS;
|
||||
CREATE TABLE p1 (pk INTEGER PRIMARY KEY, f2 CHAR(30));
|
||||
INSERT INTO p1 VALUES (1, 'INITIAL VALUE');
|
||||
CREATE TABLE p2 (pk INTEGER PRIMARY KEY, f2 CHAR(30));
|
||||
|
@ -684,6 +686,7 @@ Note 1051 Unknown table 'test.tmp1,test.tmp2'
|
|||
######################################################################
|
||||
connection node_1;
|
||||
SET SESSION wsrep_sync_wait=0;
|
||||
FLUSH STATUS;
|
||||
CREATE TABLE p1 (pk INTEGER PRIMARY KEY, f2 CHAR(30));
|
||||
INSERT INTO p1 VALUES (1, 'INITIAL VALUE');
|
||||
CREATE TABLE p2 (pk INTEGER PRIMARY KEY, f2 CHAR(30));
|
||||
|
|
|
@ -10,10 +10,10 @@ INSERT INTO t1 VALUES (1);
|
|||
INSERT INTO t2 VALUES (1);
|
||||
connection node_2a;
|
||||
SET SESSION wsrep_sync_wait=0;
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE (STATE LIKE '%committing%' or STATE = 'Waiting for certification');
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE '%committing%' OR STATE LIKE 'Commit' OR STATE LIKE 'Waiting for certification');
|
||||
EXPECT_1
|
||||
1
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE '%Waiting for table metadata lock%';
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
EXPECT_1
|
||||
1
|
||||
SELECT COUNT(*) AS EXPECT_0 FROM t1;
|
||||
|
@ -32,9 +32,8 @@ EXPECT_1
|
|||
SELECT COUNT(*) AS EXPECT_1 FROM t2;
|
||||
EXPECT_1
|
||||
1
|
||||
SELECT COUNT(*) AS EXPECT_2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE (STATE LIKE '%committed%' or STATE = 'Waiting for certification');
|
||||
SELECT COUNT(*) AS EXPECT_2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE '%committed%' OR STATE LIKE 'Waiting for certification');
|
||||
EXPECT_2
|
||||
2
|
||||
SET GLOBAL wsrep_slave_threads = 1;;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
|
|
|
@ -34,6 +34,5 @@ expect_20
|
|||
SELECT COUNT(*) as expect_20 FROM t2;
|
||||
expect_20
|
||||
20
|
||||
SET GLOBAL wsrep_slave_threads = 1;;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
|
|
|
@ -33,7 +33,6 @@ connection node_2;
|
|||
SELECT COUNT(*) FROM t2;
|
||||
COUNT(*)
|
||||
70
|
||||
SET GLOBAL wsrep_slave_threads = 1;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
#
|
||||
|
|
|
@ -20,7 +20,7 @@ ERROR HY000: DDL-statement is forbidden as table storage engine does not support
|
|||
SHOW WARNINGS;
|
||||
Level Code Message
|
||||
Error 4165 DDL-statement is forbidden as table storage engine does not support Galera replication
|
||||
Warning 1031 WSREP: wsrep_strict_dll enabled. Storage engine Aria not supported.
|
||||
Warning 1031 WSREP: wsrep_strict_ddl enabled. Storage engine Aria not supported.
|
||||
connection node_2;
|
||||
SHOW CREATE TABLE t1;
|
||||
ERROR 42S02: Table 'test.t1' doesn't exist
|
||||
|
@ -31,9 +31,9 @@ ERROR HY000: DDL-statement is forbidden as table storage engine does not support
|
|||
SHOW WARNINGS;
|
||||
Level Code Message
|
||||
Error 4165 DDL-statement is forbidden as table storage engine does not support Galera replication
|
||||
Warning 1031 WSREP: wsrep_strict_dll enabled. Storage engine MyISAM not supported.
|
||||
Warning 1031 WSREP: wsrep_strict_ddl enabled. Storage engine MyISAM not supported.
|
||||
Error 4165 DDL-statement is forbidden as table storage engine does not support Galera replication
|
||||
Warning 1031 WSREP: wsrep_strict_dll enabled. Storage engine MyISAM not supported.
|
||||
Warning 1031 WSREP: wsrep_strict_ddl enabled. Storage engine MyISAM not supported.
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
|
|
|
@ -11,58 +11,58 @@ return wsrep_not_ok() if wsrep_not_ok();
|
|||
push @::global_suppressions,
|
||||
(
|
||||
qr(WSREP: wsrep_sst_receive_address is set to '127\.0\.0\.1),
|
||||
qr(WSREP: Could not open saved state file for reading: .*),
|
||||
qr(WSREP: Could not open state file for reading: .*),
|
||||
qr(WSREP: Could not open saved state file for reading: ),
|
||||
qr(WSREP: Could not open state file for reading: ),
|
||||
qr(WSREP: Gap in state sequence\. Need state transfer\.),
|
||||
qr(WSREP: Failed to prepare for incremental state transfer:),
|
||||
qr(WSREP: .*down context.*),
|
||||
qr(WSREP: Failed to send state UUID:),
|
||||
qr(WSREP: last inactive check more than .* skipping check),
|
||||
qr(WSREP: Releasing seqno [0-9]* before [0-9]* was assigned\.),
|
||||
qr|WSREP: access file\(.*gvwstate.dat\) failed\(No such file or directory\)|,
|
||||
qr(WSREP: Releasing seqno [0-9]+ before [0-9]+ was assigned\.),
|
||||
qr|WSREP: access file\(.*gvwstate.dat\) failed ?\(No such file or directory\)|,
|
||||
qr(WSREP: Quorum: No node with complete state),
|
||||
qr(WSREP: Initial position was provided by configuration or SST, avoiding override),
|
||||
qr|WSREP: discarding established \(time wait\) .*|,
|
||||
qr|WSREP: discarding established \(time wait\) |,
|
||||
qr(WSREP: There are no nodes in the same segment that will ever be able to become donors, yet there is a suitable donor outside\. Will use that one\.),
|
||||
qr(WSREP: evs::proto.*),
|
||||
qr|WSREP: Ignoring possible split-brain \(allowed by configuration\) from view:.*|,
|
||||
qr|WSREP: Ignoring possible split-brain \(allowed by configuration\) from view:|,
|
||||
qr(WSREP: no nodes coming from prim view, prim not possible),
|
||||
qr(WSREP: Member .* requested state transfer from .* but it is impossible to select State Transfer donor: Resource temporarily unavailable),
|
||||
qr(WSREP: user message in state LEAVING),
|
||||
qr(WSREP: .* sending install message failed: Transport endpoint is not connected),
|
||||
qr(WSREP: .* sending install message failed: Resource temporarily unavailable),
|
||||
qr(WSREP: Maximum writeset size exceeded by .*),
|
||||
qr(WSREP: transaction size exceeded.*),
|
||||
qr(WSREP: RBR event .*),
|
||||
qr(WSREP: Ignoring error for TO isolated action: .*),
|
||||
qr(WSREP: transaction size limit .*),
|
||||
qr(WSREP: rbr write fail, .*),
|
||||
qr(WSREP: .*Backend not supported: foo.*),
|
||||
qr(WSREP: .*Failed to initialize backend using .*),
|
||||
qr(WSREP: .*Failed to open channel 'my_wsrep_cluster' at .*),
|
||||
qr(WSREP: Maximum writeset size exceeded by ),
|
||||
qr(WSREP: transaction size exceeded),
|
||||
qr(WSREP: RBR event ),
|
||||
qr(WSREP: Ignoring error for TO isolated action: ),
|
||||
qr(WSREP: transaction size limit ),
|
||||
qr(WSREP: rbr write fail, ),
|
||||
qr(WSREP: .*Backend not supported: foo),
|
||||
qr(WSREP: .*Failed to initialize backend using ),
|
||||
qr(WSREP: .*Failed to open channel 'my_wsrep_cluster' at ),
|
||||
qr(WSREP: gcs connect failed: Socket type not supported),
|
||||
qr(WSREP: failed to open gcomm backend connection: 110: failed to reach primary view: 110 .*),
|
||||
qr(WSREP: .*Failed to open backend connection: -110 .*),
|
||||
qr(WSREP: .*Failed to open channel 'my_wsrep_cluster' at .*),
|
||||
qr(WSREP: .*Failed to open backend connection: -110 ),
|
||||
qr(WSREP: .*Failed to open channel 'my_wsrep_cluster' at ),
|
||||
qr(WSREP: gcs connect failed: Connection timed out),
|
||||
qr|WSREP: wsrep::connect\(.*\) failed: 7|,
|
||||
qr(WSREP: SYNC message from member .* in non-primary configuration\. Ignored\.),
|
||||
qr(WSREP: Could not find peer:),
|
||||
qr(WSREP: TO isolation failed for: .*),
|
||||
qr|WSREP: gcs_caused\(\) returned .*|,
|
||||
qr|WSREP: Protocol violation\. JOIN message sender .* is not in state transfer \(SYNCED\). Message ignored\.|,
|
||||
qr|WSREP: Protocol violation\. JOIN message sender .* is not in state transfer \(JOINED\). Message ignored\.|,
|
||||
qr(WSREP: TO isolation failed for: ),
|
||||
qr|WSREP: gcs_caused\(\) returned |,
|
||||
qr|WSREP: Protocol violation\. JOIN message sender .* is not in state transfer \(SYNCED\)\. Message ignored\.|,
|
||||
qr|WSREP: Protocol violation\. JOIN message sender .* is not in state transfer \(JOINED\)\. Message ignored\.|,
|
||||
qr|WSREP: Unsupported protocol downgrade: incremental data collection disabled\. Expect abort\.|,
|
||||
qr(WSREP: Action message in non-primary configuration from member [0-9]*),
|
||||
qr(WSREP: Last Applied Action message in non-primary configuration from member [0-9]*),
|
||||
qr(WSREP: discarding established .*),
|
||||
qr|WSREP: .*core_handle_uuid_msg.*|,
|
||||
qr(WSREP: discarding established ),
|
||||
qr|WSREP: .*core_handle_uuid_msg|,
|
||||
qr(WSREP: --wsrep-causal-reads=ON takes precedence over --wsrep-sync-wait=0\. WSREP_SYNC_WAIT_BEFORE_READ is on),
|
||||
qr|WSREP: JOIN message from member .* in non-primary configuration\. Ignored\.|,
|
||||
qr|WSREP: .*Query apply failed:.*|,
|
||||
qr(WSREP: Ignoring error.*),
|
||||
qr(WSREP: Failed to remove page file .*),
|
||||
qr(WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to .*),
|
||||
qr|WSREP: .*Query apply failed:|,
|
||||
qr(WSREP: Ignoring error),
|
||||
qr(WSREP: Failed to remove page file ),
|
||||
qr(WSREP: wsrep_sst_method is set to 'mysqldump' yet mysqld bind_address is set to ),
|
||||
qr|WSREP: Sending JOIN failed: -107 \(Transport endpoint is not connected\)\. Will retry in new primary component\.|,
|
||||
qr|WSREP: Send action \{.* STATE_REQUEST\} returned -107 \(Transport endpoint is not connected\)|,
|
||||
qr|WSREP: Trying to continue unpaused monitor|,
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
log-bin=mysqld-bin
|
||||
log-slave-updates
|
||||
binlog-format=ROW
|
||||
|
||||
[mysqld.1]
|
||||
gtid-domain-id=1
|
||||
wsrep_gtid_mode=1
|
||||
wsrep_gtid_domain_id=1
|
||||
|
||||
[mysqld.2]
|
||||
gtid-domain-id=1
|
||||
wsrep_gtid_mode=1
|
||||
wsrep_gtid_domain_id=1
|
||||
wsrep_gtid_domain_id=1
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep_auto_increment_control=OFF
|
||||
|
||||
[mysqld.2]
|
||||
wsrep_auto_increment_control=OFF
|
||||
|
|
|
@ -41,7 +41,7 @@ INSERT INTO t1 VALUES (NULL);
|
|||
SET GLOBAL debug_dbug = 'RESET';
|
||||
SET DEBUG_SYNC = 'now SIGNAL signal.mdev_20225_continue';
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
SET GLOBAL wsrep_slave_threads = 1;
|
||||
SET GLOBAL wsrep_slave_threads = DEFAULT;
|
||||
|
||||
--connection node_2
|
||||
# Trigger should now be dropped on node_2.
|
||||
|
|
|
@ -99,4 +99,4 @@ SET SESSION debug_sync = "now SIGNAL continue";
|
|||
SET debug_sync = "RESET";
|
||||
|
||||
DROP TABLE t1;
|
||||
SET GLOBAL wsrep_slave_threads = 1;
|
||||
SET GLOBAL wsrep_slave_threads = DEFAULT;
|
||||
|
|
|
@ -13,7 +13,7 @@ SET lock_wait_timeout= 1;
|
|||
--connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1
|
||||
--connection node_1b
|
||||
SET SESSION wsrep_sync_wait = 0;
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = 'Waiting for table level lock'
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'Waiting for table level lock'
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--connection node_1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqld]
|
||||
log-bin
|
||||
log-bin
|
||||
|
|
|
@ -21,4 +21,3 @@ CREATE TABLE t1 (pk INT PRIMARY KEY, b INT) ENGINE=SEQUENCE;
|
|||
ALTER TABLE t1 DROP COLUMN c2;
|
||||
SELECT get_lock ('test', 1.5);
|
||||
DROP TABLE t1;
|
||||
|
||||
|
|
|
@ -3,4 +3,3 @@
|
|||
[mysqld.1]
|
||||
log-bin=mariadb-bin
|
||||
log-slave-updates=OFF
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
--source ../galera/include/auto_increment_offset_save.inc
|
||||
|
||||
--connection node_2
|
||||
--let $wsrep_slave_threads_orig = `SELECT @@wsrep_slave_threads`
|
||||
|
||||
call mtr.add_suppression("WSREP: Failed to create/initialize system thread");
|
||||
SET GLOBAL debug_dbug='+d,wsrep_simulate_failed_connection_1';
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
|
@ -21,4 +23,9 @@ SELECT @@wsrep_slave_threads;
|
|||
# issue is fixed.
|
||||
--source include/restart_mysqld.inc
|
||||
|
||||
--connection node_2
|
||||
--disable_query_log
|
||||
--eval SET GLOBAL wsrep_slave_threads = $wsrep_slave_threads_orig;
|
||||
--enable_query_log
|
||||
|
||||
--source ../galera/include/auto_increment_offset_restore.inc
|
||||
|
|
|
@ -23,5 +23,3 @@ SELECT COUNT(*) AS EXPECT_12 FROM t1;
|
|||
DROP TABLE t1;
|
||||
SET GLOBAL wsrep_load_data_splitting=OFF;
|
||||
SET GLOBAL wsrep_replicate_myisam=OFF;
|
||||
|
||||
|
||||
|
|
|
@ -28,5 +28,3 @@ SET SESSION wsrep_sync_wait = 0;
|
|||
--source ../../galera/include/auto_increment_offset_restore.inc
|
||||
--connection node_1
|
||||
DROP TABLE t3;
|
||||
|
||||
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
--wsrep_auto_increment_control=OFF --auto_increment_increment=3 --auto_increment_offset=3
|
||||
|
||||
|
|
|
@ -38,4 +38,3 @@ set debug_sync= 'now SIGNAL continue';
|
|||
--reap
|
||||
DROP TABLE t1;
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
|
||||
|
|
|
@ -10,6 +10,4 @@ log_slave_updates
|
|||
max-binlog-size=4096
|
||||
expire-logs-days=1
|
||||
|
||||
|
||||
[mysqld.2]
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
!include ../galera_2nodes_as_slave.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep-slave-threads=10
|
||||
|
||||
[mysqld.2]
|
||||
slave-parallel-threads=2
|
||||
slave-parallel-mode=optimistic
|
||||
[mysqld.1]
|
||||
wsrep-slave-threads=10
|
||||
|
|
|
@ -39,4 +39,3 @@ SET GLOBAL wsrep_desync=0;
|
|||
|
||||
# Cleanup
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
|
||||
|
|
|
@ -7,6 +7,3 @@ log-slave-updates
|
|||
[mysqld.2]
|
||||
log-bin
|
||||
log-slave-updates
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
--gtid-domain-id=1 --log-bin --log-slave-updates
|
||||
|
||||
|
|
|
@ -80,5 +80,3 @@ SET SESSION DEBUG_SYNC = 'now SIGNAL signal.wsrep_apply_cb';
|
|||
|
||||
SET GLOBAL DEBUG_DBUG = "";
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
|
||||
|
||||
|
|
|
@ -7,4 +7,3 @@ log-slave-updates
|
|||
[mysqld.2]
|
||||
log-bin
|
||||
log-slave-updates
|
||||
|
||||
|
|
|
@ -86,4 +86,3 @@ DROP TABLE t1, t2;
|
|||
|
||||
--source include/galera_end.inc
|
||||
--echo # End of tests
|
||||
|
||||
|
|
|
@ -10,6 +10,4 @@ log_slave_updates
|
|||
max-binlog-size=4096
|
||||
expire-logs-days=1
|
||||
|
||||
|
||||
[mysqld.2]
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ INSERT INTO t1 VALUES (2);
|
|||
--connection node_1a
|
||||
SET SESSION wsrep_sync_wait = 0;
|
||||
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock'
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
--source include/wait_condition.inc
|
||||
|
||||
SELECT COUNT(*) = 0 FROM t1;
|
||||
|
|
|
@ -9,6 +9,3 @@ wait_timeout=5
|
|||
lock_wait_timeout=5
|
||||
innodb_lock_wait_timeout=5
|
||||
wait_timeout=5
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -27,16 +27,16 @@ ALTER TABLE t1 ADD COLUMN f2 INTEGER;
|
|||
--connection node_1
|
||||
SELECT 1 FROM DUAL;
|
||||
# Wait
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock';
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
--source include/wait_condition.inc
|
||||
|
||||
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock';
|
||||
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
|
||||
UNLOCK TABLES;
|
||||
|
||||
SET SESSION wsrep_sync_wait = 15;
|
||||
|
||||
SHOW CREATE TABLE t1;
|
||||
SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock';
|
||||
SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -73,4 +73,3 @@ RESET SLAVE ALL;
|
|||
|
||||
--connection node_3
|
||||
RESET MASTER;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ ALTER TABLE t1 ADD COLUMN (f4 int(10));
|
|||
# reach commit stage. In the unlikely case the interleaving is different, the
|
||||
# result of the test should not change.
|
||||
--connection node_1c
|
||||
--let $wait_condition = SELECT COUNT(*)=1 FROM information_schema.processlist WHERE (State='Commit' OR State='Waiting for certification') AND ID=$insert_id
|
||||
--let $wait_condition = SELECT COUNT(*)=1 FROM information_schema.processlist WHERE (STATE LIKE '%committing%' OR STATE LIKE 'Commit' OR STATE LIKE 'Waiting for certification') AND ID=$insert_id
|
||||
--source include/wait_condition.inc
|
||||
--let $wait_condition = SELECT COUNT(*)=1 FROM information_schema.metadata_lock_info WHERE TABLE_NAME='t1' AND THREAD_ID=$insert_id
|
||||
--source include/wait_condition.inc
|
||||
|
@ -83,11 +83,11 @@ ALTER TABLE t1 ADD COLUMN (f4 int(10));
|
|||
|
||||
# wait for insert to get blocked
|
||||
--connection node_1c
|
||||
--let $wait_condition = SELECT COUNT(*)=1 FROM information_schema.processlist WHERE (State='Commit' OR State='Waiting for certification') AND ID=$insert_id
|
||||
--let $wait_condition = SELECT COUNT(*)=1 FROM information_schema.processlist WHERE (STATE LIKE '%committing%' OR STATE LIKE 'Commit' OR STATE LIKE 'Waiting for certification') AND ID=$insert_id
|
||||
--source include/wait_condition.inc
|
||||
--let $wait_condition = SELECT COUNT(*)=1 FROM information_schema.metadata_lock_info WHERE TABLE_NAME='t1' AND THREAD_ID=$insert_id
|
||||
--source include/wait_condition.inc
|
||||
--let $wait_condition = SELECT COUNT(*)=2 FROM information_schema.processlist WHERE Info like 'INSERT INTO t1 (f1) values("node1%")' AND (State='Commit' or State='Waiting for certification')
|
||||
--let $wait_condition = SELECT COUNT(*)=2 FROM information_schema.processlist WHERE Info like 'INSERT INTO t1 (f1) values("node1%")' AND (STATE LIKE '%committing%' OR STATE LIKE 'Commit' OR STATE LIKE 'Waiting for certification')
|
||||
--source include/wait_condition.inc
|
||||
|
||||
# nothing after BLOCK_DDL is applied
|
||||
|
|
|
@ -55,4 +55,3 @@ DROP TABLE t1;
|
|||
|
||||
--disconnect node_2a
|
||||
--disconnect node_2b
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@ INSERT INTO t1 VALUES (2);
|
|||
|
||||
--connection node_2
|
||||
SET SESSION wsrep_sync_wait = 0;
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock'
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
--source include/wait_condition.inc
|
||||
|
||||
UNLOCK TABLES;
|
||||
|
||||
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock'
|
||||
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
--source include/wait_condition.inc
|
||||
|
||||
COMMIT;
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep-debug=1
|
||||
loose-galera-bf-abort-lock-table=1
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
--source include/galera_cluster.inc
|
||||
--source include/have_innodb.inc
|
||||
--source include/force_restart.inc
|
||||
|
||||
#
|
||||
# Test that a local LOCK TABLE will NOT be broken by an incoming remote transaction against that table
|
||||
|
@ -18,13 +17,13 @@ INSERT INTO t1 VALUES (2);
|
|||
|
||||
--connection node_2
|
||||
SET SESSION wsrep_sync_wait = 0;
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock'
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
--let $wait_condition_on_error_output = SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST
|
||||
--source include/wait_condition_with_debug_and_kill.inc
|
||||
|
||||
UNLOCK TABLES;
|
||||
|
||||
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'Waiting for table metadata lock'
|
||||
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
--let $wait_condition_on_error_output = SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST
|
||||
--source include/wait_condition_with_debug_and_kill.inc
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqltest]
|
||||
ps-protocol
|
||||
ps-protocol
|
||||
|
|
|
@ -5,5 +5,3 @@ innodb_stats_persistent=ON
|
|||
|
||||
[mysqld.2]
|
||||
innodb_stats_persistent=ON
|
||||
|
||||
|
||||
|
|
|
@ -46,4 +46,3 @@ ALTER TABLE t1 CHANGE f2 f2 INTEGER NOT NULL DEFAULT 1;
|
|||
--enable_query_log
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ update t1 set a =5, b=2;
|
|||
|
||||
--connection node_2b
|
||||
SET SESSION wsrep_sync_wait=0;
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = 'Waiting for table metadata lock';
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--connection node_2a
|
||||
|
|
|
@ -95,4 +95,3 @@ drop procedure p1;
|
|||
--disconnect node_1_p2
|
||||
--disconnect node_2_p1
|
||||
--disconnect node_2_p2
|
||||
|
||||
|
|
|
@ -9,5 +9,3 @@ slave-sql-verify-checksum=1
|
|||
binlog-checksum=CRC32
|
||||
master-verify-checksum=1
|
||||
slave-sql-verify-checksum=1
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,3 @@
|
|||
binlog-row-event-max-size=4294967040
|
||||
|
||||
[mysqld.2]
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,3 @@
|
|||
binlog-row-event-max-size=256
|
||||
|
||||
[mysqld.2]
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -12,4 +12,3 @@ INSERT INTO t1 VALUES (REPEAT('x', 1000));
|
|||
SELECT COUNT(*) = 1 FROM t1 WHERE f1 = REPEAT('x', 1000);
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
|
|
|
@ -94,7 +94,3 @@ SELECT COUNT(*) = 0 FROM t2;
|
|||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -26,4 +26,3 @@ reset_connection;
|
|||
--connection node_1
|
||||
DROP TABLE t1;
|
||||
DROP USER user1;
|
||||
|
||||
|
|
|
@ -98,4 +98,3 @@ DROP TABLE t1;
|
|||
|
||||
--source include/galera_end.inc
|
||||
--echo # End of test
|
||||
|
||||
|
|
|
@ -7,5 +7,3 @@ loose-galera-ddl-fk-conflict=1
|
|||
[mysqld.2]
|
||||
wsrep-debug=1
|
||||
loose-galera-ddl-fk-conflict=1
|
||||
|
||||
|
||||
|
|
|
@ -43,4 +43,3 @@ SET SESSION wsrep_sync_wait=0;
|
|||
--source galera_ddl_fk_conflict_with_tmp.inc
|
||||
|
||||
# CHECK and ANALYZE are not affected
|
||||
|
||||
|
|
|
@ -51,4 +51,3 @@ SHOW CREATE TABLE t6;
|
|||
|
||||
--connection node_1
|
||||
DROP TABLE t1, t2, t3, t4, t5, t6;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
[mysqld]
|
||||
|
||||
[mysqld]
|
||||
encrypt-tmp-files = 1
|
||||
plugin-load-add= @ENV.FILE_KEY_MANAGEMENT_SO
|
||||
file-key-management
|
||||
|
|
|
@ -49,4 +49,3 @@ DROP DATABASE testdb_9401;
|
|||
|
||||
#--source include/galera_end.inc
|
||||
--echo # End of tests
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep_provider_options='base_port=@mysqld.1.#galera_port;gcs.max_packet_size=64'
|
||||
|
||||
[mysqld.2]
|
||||
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcs.max_packet_size=64'
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep_provider_options='base_port=@mysqld.1.#galera_port;gcs.max_packet_size=64;gcache.size=10M'
|
||||
|
||||
[mysqld.2]
|
||||
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcs.max_packet_size=64;gcache.size=10M'
|
||||
|
|
|
@ -7,4 +7,3 @@ log-slave-updates
|
|||
[mysqld.2]
|
||||
log-bin
|
||||
log-slave-updates
|
||||
|
||||
|
|
|
@ -13,4 +13,3 @@ wsrep_gtid_mode=ON
|
|||
server-id=12
|
||||
log_slave_updates
|
||||
log_bin
|
||||
|
||||
|
|
|
@ -4,13 +4,16 @@
|
|||
log-bin=mysqld-bin
|
||||
log-slave-updates
|
||||
binlog-format=ROW
|
||||
|
||||
[mysqld.1]
|
||||
gtid-domain-id=1
|
||||
wsrep_gtid_mode=1
|
||||
wsrep_gtid_domain_id=1
|
||||
|
||||
[mysqld.2]
|
||||
gtid-domain-id=1
|
||||
wsrep_gtid_mode=1
|
||||
wsrep_gtid_domain_id=1
|
||||
|
||||
[mysqld.3]
|
||||
gtid-domain-id=2
|
||||
|
|
|
@ -5,14 +5,16 @@ log-bin=mysqld-bin
|
|||
log-slave-updates
|
||||
binlog-format=ROW
|
||||
wsrep_sst_method=rsync
|
||||
|
||||
[mysqld.1]
|
||||
gtid-domain-id=1
|
||||
wsrep_gtid_mode=1
|
||||
wsrep_gtid_domain_id=1
|
||||
|
||||
[mysqld.2]
|
||||
gtid-domain-id=1
|
||||
wsrep_gtid_mode=1
|
||||
wsrep_gtid_domain_id=1
|
||||
|
||||
[mysqld.3]
|
||||
gtid-domain-id=2
|
||||
|
||||
|
|
|
@ -4,10 +4,12 @@
|
|||
log-bin=mysqld-bin
|
||||
log-slave-updates
|
||||
binlog-format=ROW
|
||||
|
||||
[mysqld.1]
|
||||
gtid-domain-id=1
|
||||
wsrep_gtid_mode=1
|
||||
wsrep_gtid_domain_id=1
|
||||
|
||||
[mysqld.2]
|
||||
gtid-domain-id=1
|
||||
wsrep_gtid_mode=1
|
||||
|
|
|
@ -57,4 +57,3 @@ DROP TABLE t1;
|
|||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
--eval SET GLOBAL wsrep_sync_wait = $wsrep_sync_wait_orig
|
||||
|
||||
|
|
|
@ -113,10 +113,3 @@ SELECT COUNT(*) = 2 FROM t1;
|
|||
SELECT COUNT(*) = 2 FROM t1;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,3 @@
|
|||
|
||||
[mysqld.1]
|
||||
wsrep_provider_options='base_port=@mysqld.1.#galera_port;pc.ignore_sb=true'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -5,4 +5,3 @@ wsrep_provider_options='base_port=@mysqld.1.#galera_port;ist.recv_bind=127.0.0.1
|
|||
|
||||
[mysqld.2]
|
||||
wsrep_provider_options='base_port=@mysqld.2.#galera_port;ist.recv_bind=127.0.0.1'
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqld.1]
|
||||
wsrep_slave_threads=1
|
||||
wsrep-debug=1
|
||||
|
||||
[mysqld.2]
|
||||
wsrep_slave_threads=1
|
||||
wsrep-debug=1
|
||||
|
|
|
@ -397,4 +397,3 @@ SELECT data_length from information_schema.tables WHERE TABLE_NAME = 'cardtest_t
|
|||
--connection node_1
|
||||
use test;
|
||||
drop database cardtest02;
|
||||
|
||||
|
|
|
@ -5,5 +5,3 @@ innodb-stats-persistent=1
|
|||
|
||||
[mysqld.2]
|
||||
innodb-stats-persistent=1
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
--source include/galera_cluster.inc
|
||||
--source include/have_innodb.inc
|
||||
|
||||
--connection node_1
|
||||
create table t(a int);
|
||||
insert into t select 1;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
!include ../galera_2nodes.cnf
|
||||
|
||||
[mysqld.1]
|
||||
|
||||
[mysqld.2]
|
||||
|
|
|
@ -91,4 +91,3 @@ SET DEBUG_SYNC = "RESET";
|
|||
--disconnect node_1a
|
||||
--disconnect node_1b
|
||||
--disconnect node_1c
|
||||
|
||||
|
|
|
@ -164,5 +164,6 @@ SET GLOBAL wsrep_slave_threads = DEFAULT;
|
|||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
|
||||
--connection node_2
|
||||
SET GLOBAL wsrep_slave_threads = DEFAULT;
|
||||
|
|
|
@ -39,5 +39,4 @@ COMMIT;
|
|||
SELECT f1 = 'текст2' FROM t1;
|
||||
SELECT f1 = 'текст2' FROM t1 WHERE f1 = 'текст2';
|
||||
|
||||
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -29,11 +29,13 @@ INSERT INTO t2 VALUES (1);
|
|||
--let $galera_connection_name = node_2a
|
||||
--let $galera_server_number = 2
|
||||
--source include/galera_connect.inc
|
||||
|
||||
--connection node_2a
|
||||
--sleep 1
|
||||
SET SESSION wsrep_sync_wait=0;
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE (STATE LIKE '%committing%' or STATE = 'Waiting for certification');
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE '%Waiting for table metadata lock%';
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE '%committing%' OR STATE LIKE 'Commit' OR STATE LIKE 'Waiting for certification');
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
|
||||
SELECT COUNT(*) AS EXPECT_0 FROM t1;
|
||||
SELECT COUNT(*) AS EXPECT_0 FROM t2;
|
||||
|
||||
|
@ -44,8 +46,11 @@ UNLOCK TABLES;
|
|||
--eval SET SESSION wsrep_sync_wait = $wsrep_sync_wait_orig;
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM t1;
|
||||
SELECT COUNT(*) AS EXPECT_1 FROM t2;
|
||||
SELECT COUNT(*) AS EXPECT_2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE (STATE LIKE '%committed%' or STATE = 'Waiting for certification');
|
||||
SELECT COUNT(*) AS EXPECT_2 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE '%committed%' OR STATE LIKE 'Waiting for certification');
|
||||
|
||||
--disable_query_log
|
||||
--eval SET GLOBAL wsrep_slave_threads = $wsrep_slave_threads_orig;
|
||||
--enable_query_log
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
|
|
|
@ -67,4 +67,3 @@ SELECT COUNT(DISTINCT f1) AS EXPECT_30000 FROM t1;
|
|||
--connection default
|
||||
DROP TABLE t1;
|
||||
DROP TABLE ten;
|
||||
|
||||
|
|
|
@ -91,5 +91,3 @@ SELECT COUNT(DISTINCT f1) FROM t1;
|
|||
DROP TABLE t1;
|
||||
DROP TABLE ten;
|
||||
DROP PROCEDURE p1;
|
||||
|
||||
|
||||
|
|
|
@ -48,10 +48,10 @@ INSERT INTO t2 select * from t2;
|
|||
--connection node_2
|
||||
SET SESSION wsrep_sync_wait = 0;
|
||||
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE LIKE 'Waiting for table metadata lock%';
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE 'Waiting for table metadata lock%' OR STATE LIKE 'Waiting to execute in isolation%');
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE (STATE LIKE '%committing%' or STATE = 'Waiting for certification');
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND (STATE LIKE '%committing%' OR STATE LIKE 'Commit' OR STATE LIKE 'Waiting for certification');
|
||||
--source include/wait_condition.inc
|
||||
|
||||
UNLOCK TABLES;
|
||||
|
@ -61,7 +61,9 @@ SET SESSION wsrep_sync_wait = 15;
|
|||
SELECT COUNT(*) as expect_20 FROM t1;
|
||||
SELECT COUNT(*) as expect_20 FROM t2;
|
||||
|
||||
--disable_query_log
|
||||
--eval SET GLOBAL wsrep_slave_threads = $wsrep_slave_threads_orig;
|
||||
--enable_query_log
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
|
|
|
@ -8,4 +8,3 @@ wsrep_provider_options='base_port=@mysqld.1.#galera_port;gcache.size=1;pc.ignore
|
|||
|
||||
[mysqld.2]
|
||||
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcache.size=1;pc.ignore_sb=true'
|
||||
|
||||
|
|
|
@ -7,4 +7,3 @@ query_cache_size=1355776
|
|||
[mysqld.2]
|
||||
query_cache_type=1
|
||||
query_cache_size=1355776
|
||||
|
||||
|
|
|
@ -7,4 +7,3 @@ query_cache_size=1355776
|
|||
[mysqld.2]
|
||||
query_cache_type=1
|
||||
query_cache_size=1355776
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ UPDATE t2 SET f1 = REPEAT('b', 256);
|
|||
SELECT COUNT(*) = 1 FROM t1 WHERE f1 = 234;
|
||||
SELECT COUNT(*) = 1 FROM t2 WHERE f1 = REPEAT('b', 256);
|
||||
|
||||
|
||||
--disable_query_log
|
||||
--eval SET GLOBAL wsrep_provider_options = '$wsrep_provider_options_orig';
|
||||
--enable_query_log
|
||||
|
|
|
@ -37,4 +37,3 @@ DROP TABLE t1;
|
|||
--source include/auto_increment_offset_restore.inc
|
||||
|
||||
--source include/galera_end.inc
|
||||
|
||||
|
|
|
@ -17,4 +17,3 @@ wsrep_gtid_mode=1
|
|||
wsrep_gtid_domain_id=16
|
||||
gtid_domain_id=11
|
||||
gtid_strict_mode=1
|
||||
|
||||
|
|
|
@ -83,4 +83,3 @@ SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b';
|
|||
SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c';
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
|
|
|
@ -25,4 +25,3 @@ SELECT COUNT(*)=0 FROM mysql.servers;
|
|||
|
||||
--source include/galera_end.inc
|
||||
--echo # End of test
|
||||
|
||||
|
|
|
@ -95,4 +95,5 @@ if ($galera_wsrep_start_position != $expected_position)
|
|||
--connection node_1
|
||||
DROP TABLE t1;
|
||||
SET GLOBAL wsrep_slave_threads = DEFAULT;
|
||||
|
||||
--source include/auto_increment_offset_restore.inc
|
||||
|
|
|
@ -35,4 +35,3 @@
|
|||
--source include/galera_signal_sync_point.inc
|
||||
--let $galera_sync_point = after_replicate_sync
|
||||
--source include/galera_signal_sync_point.inc
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ SET SESSION sql_log_bin = 1;
|
|||
|
||||
INSERT INTO t1 VALUES (2);
|
||||
|
||||
|
||||
--connection node_2
|
||||
SELECT COUNT(*) = 2 FROM t1;
|
||||
SELECT COUNT(*) = 1 FROM t1 WHERE f1 = 1;
|
||||
|
|
|
@ -14,5 +14,3 @@ SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VA
|
|||
|
||||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
||||
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ INSERT INTO wsrep_local_indexes VALUES ((SELECT variable_value FROM INFORMATION_
|
|||
--connection node_2
|
||||
INSERT INTO wsrep_local_indexes VALUES ((SELECT variable_value FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE variable_name = 'wsrep_local_index'));
|
||||
|
||||
|
||||
--connection node_1
|
||||
SELECT COUNT(*) = 2 FROM wsrep_local_indexes;
|
||||
SELECT COUNT(DISTINCT wsrep_local_index) = 2 FROM wsrep_local_indexes;
|
||||
|
|
|
@ -22,7 +22,3 @@ SET GLOBAL wsrep_desync = 0;
|
|||
--source include/wait_condition.inc
|
||||
|
||||
SELECT VARIABLE_VALUE = 'Synced' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -67,4 +67,3 @@ DROP TABLE t1;
|
|||
# Restore original auto_increment_offset values.
|
||||
--let $node_2=node_2a
|
||||
--source include/auto_increment_offset_restore.inc
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
--wsrep-sync-wait=0 --wsrep-causal-reads=OFF
|
||||
--wsrep-sync-wait=0 --wsrep-causal-reads=OFF
|
||||
|
|
|
@ -45,4 +45,3 @@ SET GLOBAL wsrep_slave_threads=DEFAULT;
|
|||
--connection node_2
|
||||
--eval drop table `$fk_child`
|
||||
--eval drop table `$fk_parent`
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ SELECT * FROM t;
|
|||
SHOW CREATE TABLE seq1;
|
||||
SHOW CREATE TABLE seq2;
|
||||
|
||||
|
||||
--connection node_1
|
||||
DROP TABLE t;
|
||||
DROP SEQUENCE seq1;
|
||||
|
|
|
@ -13,5 +13,3 @@ log_bin=binlog
|
|||
log_slave_updates=ON
|
||||
wsrep_sst_method=rsync
|
||||
thread_handling = pool-of-threads
|
||||
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue