Skip to content

Commit 0cc3cb6

Browse files
committed
rr_trx: fix syntax; disable in MTR
1 parent b8ef446 commit 0cc3cb6

3 files changed

Lines changed: 49 additions & 27 deletions

File tree

mysql-test/collections/disabled.def

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,25 @@ group_replication.gr_xa_commit_failure_before_gtid_externalization @windows : BU
125125
group_replication.gr_xa_commit_one_phase_failure_before_gtid_externalization @windows : BUG#34155238 Disabled until bug is fixed
126126
group_replication.gr_xa_prepare_failure_before_gtid_externalization @windows : BUG#34155238 Disabled until bug is fixed
127127
group_replication.gr_xa_rollback_failure_before_gtid_externalization @windows : BUG#34155238 Disabled until bug is fixed
128+
129+
# engines/rr_trx suite: This is a stress test suite designed to run via
130+
# run_stress_tx_rr.pl, not as standalone MTR tests. The init test creates
131+
# shared schema that rr_* tests depend on, but normal MTR restarts the
132+
# server between tests. Also broken upstream in Oracle MySQL 8.4.8
133+
# (ROWS became a reserved keyword in stored procedure parameters).
134+
engines/rr_trx.init_innodb : BUG#0 Stress-only suite, not standalone MTR tests
135+
engines/rr_trx.rr_c_count_not_zero : BUG#0 Stress-only suite, not standalone MTR tests
136+
engines/rr_trx.rr_c_stats : BUG#0 Stress-only suite, not standalone MTR tests
137+
engines/rr_trx.rr_i_40-44 : BUG#0 Stress-only suite, not standalone MTR tests
138+
engines/rr_trx.rr_id_3 : BUG#0 Stress-only suite, not standalone MTR tests
139+
engines/rr_trx.rr_id_900 : BUG#0 Stress-only suite, not standalone MTR tests
140+
engines/rr_trx.rr_insert_select_2 : BUG#0 Stress-only suite, not standalone MTR tests
141+
engines/rr_trx.rr_iud_rollback-multi-50 : BUG#0 Stress-only suite, not standalone MTR tests
142+
engines/rr_trx.rr_replace_7-8 : BUG#0 Stress-only suite, not standalone MTR tests
143+
engines/rr_trx.rr_s_select-uncommitted : BUG#0 Stress-only suite, not standalone MTR tests
144+
engines/rr_trx.rr_sc_select-limit-nolimit_4 : BUG#0 Stress-only suite, not standalone MTR tests
145+
engines/rr_trx.rr_sc_select-same_2 : BUG#0 Stress-only suite, not standalone MTR tests
146+
engines/rr_trx.rr_sc_sum_total : BUG#0 Stress-only suite, not standalone MTR tests
147+
engines/rr_trx.rr_u_10-19 : BUG#0 Stress-only suite, not standalone MTR tests
148+
engines/rr_trx.rr_u_10-19_nolimit : BUG#0 Stress-only suite, not standalone MTR tests
149+
engines/rr_trx.rr_u_4 : BUG#0 Stress-only suite, not standalone MTR tests

mysql-test/suite/engines/rr_trx/include/rr_init.test

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,24 @@ CREATE TABLE t1 (
8181
# Check that the table was really created with the intended storage engine.
8282
SHOW CREATE TABLE t1;
8383

84-
## Procedure for inserting the value 1000 into integer fieds, "rows" times.
84+
## Procedure for inserting the value 1000 into integer fieds, "num_rows" times.
8585

8686
--delimiter //
8787

88-
eval CREATE PROCEDURE insertRows(rows INT)
88+
eval CREATE PROCEDURE insertRows(num_rows INT)
8989
BEGIN
9090
SET @n = 1;
9191
REPEAT
92-
INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
92+
INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
9393
`int2`, `int2_key`, `int2_unique`,
94-
`for_update`, `connection_id`, `thread_id`,
95-
`is_uncommitted`, `is_consistent`)
94+
`for_update`, `connection_id`, `thread_id`,
95+
`is_uncommitted`, `is_consistent`)
9696
VALUES (0, 1000, 1000, @n,
9797
-1000, -1000, -@n,
98-
0, CONNECTION_ID(), 0,
98+
0, CONNECTION_ID(), 0,
9999
0, 1);
100100
SET @n = @n + 1;
101-
UNTIL @n > rows
101+
UNTIL @n > num_rows
102102
END REPEAT;
103103
END;
104104
//

mysql-test/suite/engines/rr_trx/r/init_innodb.result

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ SET @@default_storage_engine = 'InnoDB';
22
SHOW VARIABLES LIKE 'default_storage_engine';
33
Variable_name Value
44
default_storage_engine InnoDB
5-
SHOW VARIABLES LIKE 'tx_isolation';
5+
SHOW VARIABLES LIKE 'transaction_isolation';
66
Variable_name Value
7-
tx_isolation REPEATABLE-READ
7+
transaction_isolation REPEATABLE-READ
88
CREATE TABLE statistics (
99
tx_errors INTEGER NOT NULL
1010
);
@@ -34,18 +34,18 @@ PRIMARY KEY (`pk`)
3434
SHOW CREATE TABLE t1;
3535
Table Create Table
3636
t1 CREATE TABLE `t1` (
37-
`pk` int(11) NOT NULL AUTO_INCREMENT,
38-
`id` int(11) NOT NULL,
39-
`int1` int(11) DEFAULT NULL,
40-
`int1_key` int(11) DEFAULT NULL,
41-
`int1_unique` int(11) DEFAULT NULL,
42-
`int2` int(11) DEFAULT NULL,
43-
`int2_key` int(11) DEFAULT NULL,
44-
`int2_unique` int(11) DEFAULT NULL,
37+
`pk` int NOT NULL AUTO_INCREMENT,
38+
`id` int NOT NULL,
39+
`int1` int DEFAULT NULL,
40+
`int1_key` int DEFAULT NULL,
41+
`int1_unique` int DEFAULT NULL,
42+
`int2` int DEFAULT NULL,
43+
`int2_key` int DEFAULT NULL,
44+
`int2_unique` int DEFAULT NULL,
4545
`for_update` tinyint(1) DEFAULT '0',
46-
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
47-
`connection_id` int(11) DEFAULT NULL,
48-
`thread_id` int(11) DEFAULT '0',
46+
`timestamp` timestamp NULL DEFAULT NULL,
47+
`connection_id` int DEFAULT NULL,
48+
`thread_id` int DEFAULT '0',
4949
`is_uncommitted` tinyint(1) DEFAULT '0',
5050
`is_consistent` tinyint(1) DEFAULT '0',
5151
PRIMARY KEY (`pk`),
@@ -54,21 +54,21 @@ t1 CREATE TABLE `t1` (
5454
KEY `id` (`id`),
5555
KEY `int1_key` (`int1_key`),
5656
KEY `int2_key` (`int2_key`)
57-
) ENGINE=InnoDB DEFAULT CHARSET=latin1
58-
CREATE PROCEDURE insertRows(rows INT)
57+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
58+
CREATE PROCEDURE insertRows(num_rows INT)
5959
BEGIN
6060
SET @n = 1;
6161
REPEAT
62-
INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
62+
INSERT INTO t1 (`id`, `int1`, `int1_key`, `int1_unique`,
6363
`int2`, `int2_key`, `int2_unique`,
64-
`for_update`, `connection_id`, `thread_id`,
65-
`is_uncommitted`, `is_consistent`)
64+
`for_update`, `connection_id`, `thread_id`,
65+
`is_uncommitted`, `is_consistent`)
6666
VALUES (0, 1000, 1000, @n,
6767
-1000, -1000, -@n,
68-
0, CONNECTION_ID(), 0,
68+
0, CONNECTION_ID(), 0,
6969
0, 1);
7070
SET @n = @n + 1;
71-
UNTIL @n > rows
71+
UNTIL @n > num_rows
7272
END REPEAT;
7373
END;
7474
//

0 commit comments

Comments
 (0)