mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.5' into '10.6'
This commit is contained in:
@@ -3,8 +3,11 @@ connection node_1;
|
||||
CREATE TABLE t1(id int not null primary key, b int) engine=InnoDB;
|
||||
INSERT INTO t1 VALUES (0,0),(1,1),(2,2),(3,3);
|
||||
BEGIN;
|
||||
SET DEBUG_SYNC = 'wsrep_after_statement_enter SIGNAL blocked';
|
||||
UPDATE t1 set b = 100 where id between 1 and 2;;
|
||||
connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1;
|
||||
SET DEBUG_SYNC = 'now WAIT_FOR blocked';
|
||||
SET DEBUG_SYNC = 'wsrep_after_statement_enter CLEAR';
|
||||
connection node_1b;
|
||||
SET @save_dbug = @@SESSION.debug_dbug;
|
||||
SET @@SESSION.innodb_lock_wait_timeout=2;
|
||||
@@ -20,5 +23,6 @@ id b
|
||||
1 100
|
||||
2 100
|
||||
3 3
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
disconnect node_1b;
|
||||
DROP TABLE t1;
|
||||
|
@@ -8,7 +8,7 @@ connection node_2;
|
||||
SET SESSION wsrep_sync_wait = 0;
|
||||
SET GLOBAL wsrep_slave_threads = 2;
|
||||
***************************************************************
|
||||
scenario 1, conflicting UPDATE
|
||||
scenario 1, conflicting UPDATE
|
||||
***************************************************************
|
||||
SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_slave_enter_sync';
|
||||
connection node_1;
|
||||
@@ -31,7 +31,7 @@ SET SESSION wsrep_on = 1;
|
||||
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_slave_enter_sync';
|
||||
SET GLOBAL wsrep_provider_options = 'dbug=';
|
||||
***************************************************************
|
||||
scenario 2, conflicting DELETE
|
||||
scenario 2, conflicting DELETE
|
||||
***************************************************************
|
||||
SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_slave_enter_sync';
|
||||
connection node_1;
|
||||
|
@@ -6,9 +6,14 @@ CREATE TABLE t1(id int not null primary key, b int) engine=InnoDB;
|
||||
INSERT INTO t1 VALUES (0,0),(1,1),(2,2),(3,3);
|
||||
|
||||
BEGIN;
|
||||
SET DEBUG_SYNC = 'wsrep_after_statement_enter SIGNAL blocked';
|
||||
--send UPDATE t1 set b = 100 where id between 1 and 2;
|
||||
|
||||
--connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1
|
||||
|
||||
SET DEBUG_SYNC = 'now WAIT_FOR blocked';
|
||||
SET DEBUG_SYNC = 'wsrep_after_statement_enter CLEAR';
|
||||
|
||||
--connection node_1b
|
||||
SET @save_dbug = @@SESSION.debug_dbug;
|
||||
SET @@SESSION.innodb_lock_wait_timeout=2;
|
||||
@@ -21,5 +26,6 @@ SET @@SESSION.debug_dbug = @save_dbug;
|
||||
--reap
|
||||
COMMIT;
|
||||
SELECT * FROM t1;
|
||||
SET DEBUG_SYNC = 'RESET';
|
||||
--disconnect node_1b
|
||||
DROP TABLE t1;
|
||||
|
@@ -26,7 +26,6 @@
|
||||
--source include/have_debug_sync.inc
|
||||
--source include/galera_have_debug_sync.inc
|
||||
|
||||
|
||||
# Setup
|
||||
|
||||
CREATE TABLE t1 (f1 VARCHAR(32) NOT NULL) ENGINE=InnoDB;
|
||||
@@ -44,7 +43,7 @@ SET SESSION wsrep_sync_wait = 0;
|
||||
SET GLOBAL wsrep_slave_threads = 2;
|
||||
|
||||
--echo ***************************************************************
|
||||
--echo scenario 1, conflicting UPDATE
|
||||
--echo scenario 1, conflicting UPDATE
|
||||
--echo ***************************************************************
|
||||
|
||||
# Set up a synchronization point to catch the first transaction
|
||||
@@ -99,9 +98,8 @@ COMMIT;
|
||||
--source include/galera_signal_sync_point.inc
|
||||
--source include/galera_clear_sync_point.inc
|
||||
|
||||
|
||||
--echo ***************************************************************
|
||||
--echo scenario 2, conflicting DELETE
|
||||
--echo scenario 2, conflicting DELETE
|
||||
--echo ***************************************************************
|
||||
|
||||
# Set up a synchronization point to catch the first transaction
|
||||
|
@@ -4,7 +4,6 @@
|
||||
|
||||
--source include/galera_cluster.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_debug_sync.inc
|
||||
|
||||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
@@ -44,7 +43,6 @@ SELECT WSREP_SYNC_WAIT_UPTO_GTID('1-1-1,1-1-2');
|
||||
--eval SELECT WSREP_SYNC_WAIT_UPTO_GTID('$wsrep_last_committed_gtid') AS WSREP_SYNC_WAIT_UPTO;
|
||||
--enable_query_log
|
||||
|
||||
|
||||
# Timeout if GTID is not received on time
|
||||
|
||||
--disable_query_log
|
||||
|
Reference in New Issue
Block a user