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
MDEV-20194 Warnings inconsistently issued upon CHECK on table from older versions
The following condition has to added: 1) InnoDB fails to include the offset of the node pointer field in non-leaf record for redundant row format. 2) If the Fixed length field does have only prefix length then calculate the field maximum size as prefix length. - Added the test case to test (2) and to check maximum number of fields can exist in the index.
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb/r/row_size_error_log_warnings_3.result
+47-7Lines changed: 47 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -15,31 +15,71 @@ col_1 TEXT
15
15
,col_11 TEXT
16
16
) ENGINE=INNODB ROW_FORMAT=COMPACT;
17
17
Warnings:
18
-
Warning 139 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
18
+
Warning 139 Row size too large (> NNNN). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
19
19
TRUNCATE TABLE t1;
20
20
Warnings:
21
-
Warning 139 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
21
+
Warning 139 Row size too large (> NNNN). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
22
22
OPTIMIZE TABLE t1;
23
23
Table Op Msg_type Msg_text
24
24
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
25
25
test.t1 optimize status OK
26
26
Warnings:
27
-
Warning 139 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
27
+
Warning 139 Row size too large (> NNNN). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
28
28
ALTER TABLE t1 FORCE;
29
29
Warnings:
30
-
Warning 139 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
30
+
Warning 139 Row size too large (> NNNN). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
31
31
SET innodb_strict_mode = ON;
32
32
TRUNCATE TABLE t1;
33
33
Warnings:
34
-
Warning 139 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
34
+
Warning 139 Row size too large (> NNNN). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
35
35
OPTIMIZE TABLE t1;
36
36
Table Op Msg_type Msg_text
37
37
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
38
38
test.t1 optimize status OK
39
39
Warnings:
40
-
Warning 139 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
40
+
Warning 139 Row size too large (> NNNN). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
41
41
ALTER TABLE t1 FORCE;
42
42
Warnings:
43
-
Warning 139 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
43
+
Warning 139 Row size too large (> NNNN). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
44
44
DROP TABLE t1;
45
45
SET @@global.log_warnings = 2;
46
+
#
47
+
# MDEV-20194 Warnings inconsistently issued upon CHECK on
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb/t/row_size_error_log_warnings_3.test
+55Lines changed: 55 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,14 @@
1
1
--source include/have_innodb.inc
2
+
--source include/have_sequence.inc
3
+
--source include/innodb_page_size_small.inc
2
4
3
5
call mtr.add_suppression("InnoDB: Cannot add field .* in table .* because after adding it, the row size is .* which is greater than maximum allowed size (.*) for a record on index leaf page.");
4
6
5
7
SET innodb_strict_mode = 0;
6
8
SET @@global.log_warnings = 3;
7
9
10
+
# Check the Warning | 139 | Row size too large (> 16318)
11
+
--replace_regex /> [0-9]+/> NNNN/
8
12
CREATE TABLE t1 (
9
13
col_1 TEXT
10
14
,col_2 TEXT
@@ -19,14 +23,65 @@ CREATE TABLE t1 (
19
23
,col_11 TEXT
20
24
) ENGINE=INNODB ROW_FORMAT=COMPACT;
21
25
--enable_warnings
26
+
--replace_regex /> [0-9]+/> NNNN/
22
27
TRUNCATE TABLE t1;
28
+
--replace_regex /> [0-9]+/> NNNN/
23
29
OPTIMIZE TABLE t1;
30
+
--replace_regex /> [0-9]+/> NNNN/
24
31
ALTER TABLE t1 FORCE;
25
32
SET innodb_strict_mode = ON;
33
+
--replace_regex /> [0-9]+/> NNNN/
26
34
TRUNCATE TABLE t1;
35
+
--replace_regex /> [0-9]+/> NNNN/
27
36
OPTIMIZE TABLE t1;
37
+
--replace_regex /> [0-9]+/> NNNN/
28
38
ALTER TABLE t1 FORCE;
29
39
DROP TABLE t1;
30
40
--disable_warnings
31
41
32
42
SET @@global.log_warnings = 2;
43
+
44
+
--echo #
45
+
--echo # MDEV-20194 Warnings inconsistently issued upon CHECK on
0 commit comments