You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WL#10495 Replication Usability: Deprecate writing multiple engines when at leastone is non-transactional or non-composable
This worklog deprecates writing transactions/statements to tables associated to multiple engines if atleast
one is non-transactional or non-composable engine.
Change-Id: I72775292f5ed8c9bb4df8a5f9be519d958d4753c
Copy file name to clipboardExpand all lines: mysql-test/r/flush_read_lock.result
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1540,6 +1540,8 @@ alter table t1_temp drop column c1;
1540
1540
begin;
1541
1541
insert into t1_base values (1);
1542
1542
insert into t3_trans values (1);
1543
+
Warnings:
1544
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t3_trans and the MyISAM table test.t1_base.
1543
1545
# Switching to connection 'con1'.
1544
1546
# The below FTWRL should not be blocked by transaction in 'default'.
Copy file name to clipboardExpand all lines: mysql-test/r/foreign_key_myisam.result
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,8 @@ ALTER TABLE parent ENGINE=InnoDB;
180
180
ERROR HY000: Table 'child' was locked with a READ lock and can't be updated
181
181
UNLOCK TABLES;
182
182
LOCK TABLES child WRITE, parent WRITE;
183
+
Warnings:
184
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.parent and the InnoDB table test.child.
Copy file name to clipboardExpand all lines: mysql-test/r/lock_multi.result
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -963,6 +963,8 @@ UNLOCK TABLES;
963
963
# 2.c) Blocks concurrent modifications to table
964
964
connection default;
965
965
LOCK TABLE t1 WRITE, t2 WRITE;
966
+
Warnings:
967
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t2 and the MyISAM table test.t1.
966
968
connection con1;
967
969
# Sending:
968
970
INSERT INTO t1 VALUES (1);
@@ -2099,6 +2101,8 @@ i
2099
2101
1
2100
2102
connection default;
2101
2103
LOCK TABLE t8 WRITE;
2104
+
Warnings:
2105
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t2 and the MyISAM table test.t8.
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t2 and the MyISAM table test.t8.
2168
2174
UNLOCK TABLES;
2169
2175
#
2170
2176
# 7.c) Blocks concurrent modifications to table
2171
2177
connection default;
2172
2178
LOCK TABLE t7 WRITE, t8 WRITE;
2179
+
Warnings:
2180
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t2 and the MyISAM table test.t7.
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t2 and the MyISAM table test.t8.
2243
2253
UNLOCK TABLES;
2244
2254
connection default;
2245
2255
# Revert effects from INSERTs
@@ -2276,6 +2286,8 @@ connection default;
2276
2286
COMMIT;
2277
2287
connection con1;
2278
2288
# Reap LOCK TABLES WRITE
2289
+
Warnings:
2290
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t2 and the MyISAM table test.t8.
2279
2291
UNLOCK TABLES;
2280
2292
connection default;
2281
2293
#
@@ -2305,6 +2317,8 @@ connection default;
2305
2317
COMMIT;
2306
2318
connection con1;
2307
2319
# Reap LOCK TABLES WRITE
2320
+
Warnings:
2321
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t2 and the MyISAM table test.t8.
2308
2322
UNLOCK TABLES;
2309
2323
connection default;
2310
2324
# Revert effects from INSERTs
@@ -2326,6 +2340,8 @@ connection con1;
2326
2340
UNLOCK TABLES;
2327
2341
connection default;
2328
2342
LOCK TABLES t8 WRITE;
2343
+
Warnings:
2344
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t2 and the MyISAM table test.t8.
Warning 6136 Combining the storage engines MEMORY and MyISAM is deprecated, but the statement or transaction updates both the MEMORY table test.t2 and the MyISAM table test.t1.
1182
1184
ROLLBACK;
1183
1185
Warnings:
1184
1186
Warning 1196 Some non-transactional changed tables couldn't be rolled back
@@ -1199,6 +1201,8 @@ create table t1 (a int not null auto_increment primary key, b int, c int, key(c)
1199
1201
create table t2 (a int not null auto_increment primary key, b int) ENGINE = MEMORY;
1200
1202
insert into t1 (b) values (null),(null),(null),(null),(null),(null),(null);
1201
1203
insert into t2 (a) select b from t1;
1204
+
Warnings:
1205
+
Warning 6136 Combining the storage engines MEMORY and MyISAM is deprecated, but the statement or transaction updates both the MEMORY table test.t2 and the MyISAM table test.t1.
Copy file name to clipboardExpand all lines: mysql-test/r/no_binlog_gtid_next_partially_failed_stmts.result
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,7 @@ SET SESSION GTID_NEXT='MASTER_UUID:7';
190
190
OPTIMIZE TABLE t1, t_non_existent;
191
191
Table Op Msg_type Msg_text
192
192
test.t1 optimize status Table is already up to date
193
+
test.t_non_existent optimize Warning Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table mysql.gtid_executed and the MyISAM table test.t1.
test.t_non_existent optimize status Operation failed
195
196
#
@@ -230,6 +231,7 @@ SET SESSION GTID_NEXT='MASTER_UUID:9';
230
231
REPAIR TABLE t1, t_non_existent;
231
232
Table Op Msg_type Msg_text
232
233
test.t1 repair status OK
234
+
test.t_non_existent repair Warning Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table mysql.gtid_executed and the MyISAM table test.t1.
Copy file name to clipboardExpand all lines: mysql-test/r/partition_innodb_semi_consistent.result
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,8 @@ SELECT * FROM t1;
103
103
a b
104
104
1 init+con1
105
105
# Switch to connection con2
106
+
Warnings:
107
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.t2 and the InnoDB table test.t1.
106
108
SELECT * FROM t1;
107
109
a b
108
110
1 init+con1+con2
@@ -130,6 +132,8 @@ SELECT * FROM t1;
130
132
a b
131
133
2 init+con1
132
134
# Switch to connection con2
135
+
Warnings:
136
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.t2 and the InnoDB table test.t1.
# from the set of locked tables. Metadata locks on both
25
25
# old and new table names are kept.
26
26
LOCK TABLES t1 WRITE, t2 WRITE, t0 WRITE;
27
+
Warnings:
28
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.t0 and the InnoDB table test.t1.
@@ -72,6 +74,8 @@ CREATE TABLE t1 (i INT) ENGINE=InnoDB;
72
74
CREATE TABLE t0 (l INT) ENGINE=MyISAM;
73
75
CREATE DATABASE mysqltest;
74
76
LOCK TABLES t0 WRITE, t1 WRITE;
77
+
Warnings:
78
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t1 and the MyISAM table test.t0.
LOCK TABLES t1 WRITE, t2 WRITE, t3 WRITE, t0 WRITE;
36
+
Warnings:
37
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.t0 and the InnoDB table test.t1.
36
38
RENAME TABLES t0 TO t00, t1 TO t01, t2 TO t4;
37
39
ERROR 42S01: Table 't4' already exists
38
40
# Tables are available under old names.
@@ -151,6 +153,8 @@ UNLOCK TABLES;
151
153
# state of metadata locks too.
152
154
# This part of the test resides in rename_myisam.test.
153
155
LOCK TABLES t4 WRITE, t1 WRITE;
156
+
Warnings:
157
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t1 and the MyISAM table test.t4.
Copy file name to clipboardExpand all lines: mysql-test/r/session_tracker_trx_state_myisam.result
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,8 @@ START TRANSACTION;
64
64
INSERT INTO t1 VALUES (1);
65
65
# resulting state should be "wW", both safe and unsafe writes happened:
66
66
INSERT INTO t2 VALUES (1);
67
+
Warnings:
68
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.t2 and the InnoDB table test.t1.
67
69
# resulting state should STILL be "wW"!
68
70
INSERT INTO t1 VALUES (1);
69
71
ROLLBACK;
@@ -74,6 +76,8 @@ START TRANSACTION;
74
76
INSERT INTO t2 VALUES (1);
75
77
# resulting state should be "wW", both safe and unsafe writes happened:
76
78
INSERT INTO t1 VALUES (1);
79
+
Warnings:
80
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t1 and the MyISAM table test.t2.
77
81
# resulting state should be "RwW" (adding transactional read):
COMMIT; INSERT INTO t2 VALUES (1); BEGIN; INSERT INTO t1 VALUES (99); |
142
+
Warnings:
143
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t1 and the MyISAM table test.t2.
138
144
COMMIT;
139
145
DROP TABLE t1;
140
146
DROP TABLE t2;
@@ -366,8 +372,12 @@ UNLOCK TABLES;
366
372
367
373
SET autocommit=1;
368
374
LOCK TABLE t1 WRITE, t2 WRITE;
375
+
Warnings:
376
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.t2 and the InnoDB table test.t1.
369
377
INSERT INTO t2 VALUES (3);
370
378
INSERT INTO t1 VALUES (3);
379
+
Warnings:
380
+
Warning 6136 Combining the storage engines InnoDB and MyISAM is deprecated, but the statement or transaction updates both the InnoDB table test.t1 and the MyISAM table test.t2.
Copy file name to clipboardExpand all lines: mysql-test/r/sp.result
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6109,11 +6109,15 @@ set @a=@a+1;
6109
6109
return @a;
6110
6110
end|
6111
6111
update t2 set b=1 where a=bug27354();
6112
+
Warnings:
6113
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.t1 and the InnoDB table test.t2.
6112
6114
select count(t_1.a),count(t_2.a) from t1 as t_1, t2 as t_2 /* must be 0,0 */;
6113
6115
count(t_1.a) count(t_2.a)
6114
6116
0 0
6115
6117
insert into t2 values (1,1),(2,2),(3,3);
6116
6118
update t2 set b=-b where a=bug27354();
6119
+
Warnings:
6120
+
Warning 6136 Combining the storage engines MyISAM and InnoDB is deprecated, but the statement or transaction updates both the MyISAM table test.t1 and the InnoDB table test.t2.
0 commit comments