Skip to content

Commit 622e9e8

Browse files
author
Jan Lindström
committed
MDEV-18265: Replace deprecated variable debug to debug_dbug on Galera tests
Replaced debug to debug_dbug on 10.1 on galera suite. Nothing to do in wsrep and galera_3nodes suites.
1 parent 5a87e3e commit 622e9e8

11 files changed

+37
-88
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ galera_as_slave_replication_bundle : MDEV-13549 Galera test failures
2323
galera_ssl_upgrade : MDEV-13549 Galera test failures
2424
galera.MW-329 : wsrep_local_replays not stable
2525
MW-416 : MDEV-13549 Galera test failures
26-
MW-388 : MDEV-13549 Galera test failures
2726
galera_sst_mysqldump_with_key : MDEV-16890 Galera test failure
2827
galera_gc_fc_limit : MDEV-17061 Test failure on galera.galera_gc_fc_limit
2928
galera_as_slave_replication_budle : MDEV-15785 Test case galera_as_slave_replication_bundle caused debug assertion

mysql-test/suite/galera/r/MW-388.result

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ INSERT INTO t1 VALUES (1, 'node 1'),(2, 'node 1');
99
INSERT INTO t1 VALUES (3, 'node 1');
1010
END|
1111
SET GLOBAL wsrep_slave_threads = 2;
12-
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
13-
Warnings:
14-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
12+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
1513
INSERT INTO t1 VALUES (1, 'node 2');;
1614
SET SESSION DEBUG_SYNC = "now WAIT_FOR sync.wsrep_apply_cb_reached";
1715
SET SESSION wsrep_sync_wait = 0;
1816
SET SESSION DEBUG_SYNC = 'wsrep_after_replication SIGNAL wsrep_after_replication_reached WAIT_FOR wsrep_after_replication_continue';
1917
CALL insert_proc ();;
2018
SET SESSION DEBUG_SYNC = "now WAIT_FOR wsrep_after_replication_reached";
21-
SET GLOBAL DEBUG = "";
22-
Warnings:
23-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
19+
SET GLOBAL debug_dbug = "";
2420
SET DEBUG_SYNC = "now SIGNAL wsrep_after_replication_continue";
2521
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
2622
SELECT @errno = 1213;
@@ -37,9 +33,7 @@ f1 f2
3733
SET GLOBAL wsrep_slave_threads = DEFAULT;
3834
DROP TABLE t1;
3935
DROP PROCEDURE insert_proc;
40-
SET GLOBAL debug = NULL;
41-
Warnings:
42-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
36+
SET GLOBAL debug_dbug = "";
4337
SET debug_sync='RESET';
4438
SELECT @@debug_sync;
4539
@@debug_sync

mysql-test/suite/galera/r/MW-86-wait1.result

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ SELECT @@debug_sync;
22
@@debug_sync
33
ON - current signal: ''
44
SET SESSION wsrep_sync_wait = 1;
5-
SET GLOBAL debug = "+d,sync.wsrep_apply_cb";
6-
Warnings:
7-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
5+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
86
CREATE TABLE t_wait1 (f1 INTEGER) ENGINE=InnoDB;
97
INSERT INTO t_wait1 VALUES (1);
108
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
@@ -33,15 +31,10 @@ SHOW TABLES;
3331
SHOW TRIGGERS;
3432
SHOW GLOBAL VARIABLES LIKE 'foo_bar';
3533
SHOW WARNINGS;
36-
SET GLOBAL debug = "-d,sync.wsrep_apply_cb";
37-
Warnings:
38-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
34+
SET GLOBAL debug_dbug = "";
3935
SET SESSION debug_sync = "now SIGNAL signal.wsrep_apply_cb";
4036
SET SESSION wsrep_sync_wait = default;
4137
DROP TABLE t_wait1;
42-
SET GLOBAL debug = NULL;
43-
Warnings:
44-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
4538
SET debug_sync='RESET';
4639
SELECT @@debug_sync;
4740
@@debug_sync

mysql-test/suite/galera/r/MW-86-wait8.result

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ SELECT @@debug_sync;
22
@@debug_sync
33
ON - current signal: ''
44
SET SESSION wsrep_sync_wait = 8;
5-
SET GLOBAL debug = "+d,sync.wsrep_apply_cb";
6-
Warnings:
7-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
5+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
86
CREATE TABLE t_wait8 (f1 INTEGER) ENGINE=InnoDB;
97
INSERT INTO t_wait8 VALUES (1);
108
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S";
@@ -35,15 +33,10 @@ SHOW TABLES;
3533
SHOW TRIGGERS;
3634
SHOW GLOBAL VARIABLES LIKE 'foo_bar';
3735
SHOW WARNINGS;
38-
SET GLOBAL debug = "-d,sync.wsrep_apply_cb";
39-
Warnings:
40-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
36+
SET GLOBAL debug_dbug = "";
4137
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
4238
SET SESSION wsrep_sync_wait = default;
4339
DROP TABLE t_wait8;
44-
SET GLOBAL debug = NULL;
45-
Warnings:
46-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
4740
SET debug_sync='RESET';
4841
SELECT @@debug_sync;
4942
@@debug_sync

mysql-test/suite/galera/r/galera_mdl_race.result

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1));
2-
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY, f2 CHAR(1));
1+
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1)) engine=innodb;
2+
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY, f2 CHAR(1)) engine=innodb;
33
INSERT INTO t1 VALUES (1, 'a');
44
INSERT INTO t1 VALUES (2, 'a');
55
SET AUTOCOMMIT=ON;
66
START TRANSACTION;
77
UPDATE t1 SET f2 = 'b' WHERE f1 = 1;
88
LOCK TABLE t2 WRITE;
9-
SET GLOBAL DEBUG = "d,sync.wsrep_before_mdl_wait";
10-
Warnings:
11-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
9+
SET @@debug_dbug = "d,sync.wsrep_before_mdl_wait";
1210
SELECT * FROM t2;;
13-
SET GLOBAL DEBUG = "d,sync.wsrep_after_BF_victim_lock";
14-
Warnings:
15-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
11+
SET @@debug_dbug = "d,sync.wsrep_after_BF_victim_lock";
1612
UPDATE t1 SET f2 = 'c' WHERE f1 = 1;
17-
SET GLOBAL DEBUG = "";
18-
Warnings:
19-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
13+
SET @@debug_dbug = "";
2014
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_before_mdl_wait";
2115
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_after_BF_victim_lock";
2216
UNLOCK TABLES;

mysql-test/suite/galera/r/galera_query_cache_sync_wait.result

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
CREATE TABLE t1 (id INT PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB;
22
INSERT INTO t1 VALUES (1);
33
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT1S";
4-
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
5-
Warnings:
6-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
4+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
75
SELECT MAX(id) FROM t1;
86
MAX(id)
97
1
108
INSERT INTO t1 VALUES (2);
119
SELECT MAX(id) FROM t1;
1210
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
13-
SET GLOBAL DEBUG = "";
14-
Warnings:
15-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
11+
SET GLOBAL debug_dbug = "";
1612
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
1713
FLUSH QUERY CACHE;
18-
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
19-
Warnings:
20-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
14+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
2115
SET DEBUG_SYNC = "RESET";
2216
INSERT INTO t1 VALUES (3);
2317
SELECT MAX(id) FROM t1;
2418
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
25-
SET GLOBAL DEBUG = "";
26-
Warnings:
27-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
19+
SET GLOBAL debug_dbug = "";
2820
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
2921
INSERT INTO t1 VALUES (4);
3022
SELECT MAX(id) FROM t1;
@@ -37,14 +29,10 @@ MAX(id)
3729
SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'Qcache_hits';
3830
VARIABLE_VALUE = 1
3931
1
40-
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
41-
Warnings:
42-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
32+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
4333
INSERT INTO t1 VALUES (5);
4434
SELECT MAX(id) FROM t1 ;
45-
SET GLOBAL DEBUG = "";
46-
Warnings:
47-
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
35+
SET GLOBAL debug_dbug = "";
4836
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
4937
MAX(id)
5038
5

mysql-test/suite/galera/t/MW-388.test

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
--source include/galera_cluster.inc
2-
--source include/have_innodb.inc
3-
--source include/have_debug.inc
42
--source include/have_debug_sync.inc
53

64
--connection node_1
@@ -29,8 +27,9 @@ DELIMITER ;|
2927
# that of the INSERT. Because there is only one slave thread,
3028
# commit cut is not processed and therefore does not advance
3129
# local monitor, and our INSERT remains stuck there.
30+
3231
SET GLOBAL wsrep_slave_threads = 2;
33-
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
32+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
3433

3534
--connection node_2
3635
--send INSERT INTO t1 VALUES (1, 'node 2');
@@ -47,8 +46,7 @@ SET SESSION DEBUG_SYNC = 'wsrep_after_replication SIGNAL wsrep_after_replication
4746
--connection node_1a
4847
SET SESSION DEBUG_SYNC = "now WAIT_FOR wsrep_after_replication_reached";
4948

50-
51-
SET GLOBAL DEBUG = "";
49+
SET GLOBAL debug_dbug = "";
5250
SET DEBUG_SYNC = "now SIGNAL wsrep_after_replication_continue";
5351
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
5452

@@ -69,7 +67,7 @@ SET GLOBAL wsrep_slave_threads = DEFAULT;
6967
DROP TABLE t1;
7068
DROP PROCEDURE insert_proc;
7169

72-
SET GLOBAL debug = NULL;
70+
SET GLOBAL debug_dbug = "";
7371
SET debug_sync='RESET';
7472

7573
# Make sure no pending signals are leftover to surprise subsequent tests.

mysql-test/suite/galera/t/MW-86-wait1.test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
SELECT @@debug_sync;
1313

1414
SET SESSION wsrep_sync_wait = 1;
15-
SET GLOBAL debug = "+d,sync.wsrep_apply_cb";
15+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
1616

1717
--connection node_1
1818
CREATE TABLE t_wait1 (f1 INTEGER) ENGINE=InnoDB;
@@ -90,7 +90,7 @@ SHOW WARNINGS;
9090
--enable_result_log
9191

9292
# Unblock the background INSERT and remove the sync point.
93-
SET GLOBAL debug = "-d,sync.wsrep_apply_cb";
93+
SET GLOBAL debug_dbug = "";
9494
SET SESSION debug_sync = "now SIGNAL signal.wsrep_apply_cb";
9595

9696
SET SESSION wsrep_sync_wait = default;
@@ -99,7 +99,6 @@ SET SESSION wsrep_sync_wait = default;
9999
# from the test.
100100
DROP TABLE t_wait1;
101101

102-
SET GLOBAL debug = NULL;
103102
SET debug_sync='RESET';
104103

105104
# Make sure no pending signals are leftover to surprise subsequent tests.

mysql-test/suite/galera/t/MW-86-wait8.test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
SELECT @@debug_sync;
1111

1212
SET SESSION wsrep_sync_wait = 8;
13-
SET GLOBAL debug = "+d,sync.wsrep_apply_cb";
13+
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
1414

1515
--connection node_1
1616
CREATE TABLE t_wait8 (f1 INTEGER) ENGINE=InnoDB;
@@ -112,7 +112,7 @@ SHOW WARNINGS;
112112
--enable_query_log
113113

114114
# Unblock the background INSERT and remove the sync point.
115-
SET GLOBAL debug = "-d,sync.wsrep_apply_cb";
115+
SET GLOBAL debug_dbug = "";
116116
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
117117

118118
SET SESSION wsrep_sync_wait = default;
@@ -121,7 +121,6 @@ SET SESSION wsrep_sync_wait = default;
121121
# from the test.
122122
DROP TABLE t_wait8;
123123

124-
SET GLOBAL debug = NULL;
125124
SET debug_sync='RESET';
126125

127126
# Make sure no pending signals are leftover to surprise subsequent tests.

mysql-test/suite/galera/t/galera_mdl_race.test

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
#
44

55
--source include/galera_cluster.inc
6-
--source include/have_innodb.inc
76
--source include/have_debug_sync.inc
87

9-
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1));
10-
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY, f2 CHAR(1));
8+
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1)) engine=innodb;
9+
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY, f2 CHAR(1)) engine=innodb;
1110
INSERT INTO t1 VALUES (1, 'a');
1211
INSERT INTO t1 VALUES (2, 'a');
1312

@@ -24,7 +23,7 @@ LOCK TABLE t2 WRITE;
2423

2524
# Block before MLD lock wait
2625
--connection node_1
27-
SET GLOBAL DEBUG = "d,sync.wsrep_before_mdl_wait";
26+
SET @@debug_dbug = "d,sync.wsrep_before_mdl_wait";
2827
--send SELECT * FROM t2;
2928

3029
# Wait for SELECT to be blocked
@@ -35,27 +34,21 @@ LOCK TABLE t2 WRITE;
3534
#--source include/wait_condition.inc
3635

3736
# block applier to wait after BF victim is locked
38-
SET GLOBAL DEBUG = "d,sync.wsrep_after_BF_victim_lock";
37+
SET @@debug_dbug = "d,sync.wsrep_after_BF_victim_lock";
3938

4039
# Issue a conflicting update on node #2
4140
--connection node_2
4241
UPDATE t1 SET f2 = 'c' WHERE f1 = 1;
4342

44-
--sleep 3
45-
4643
# Unblock the SELECT, to enter wsrep_thd_is_BF
4744
--connection node_1a
48-
SET GLOBAL DEBUG = "";
45+
SET @@debug_dbug = "";
4946
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_before_mdl_wait";
5047

51-
--sleep 3
52-
5348
# unblock applier to try to BF the SELECT
5449
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_after_BF_victim_lock";
5550

56-
5751
# table lock is not needed anymore
58-
--sleep 3
5952
UNLOCK TABLES;
6053

6154
# SELECT succeeds

0 commit comments

Comments
 (0)