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
When there's a column length mismatch in the InnoDB
statistics tables (innodb_table_stats or innodb_index_stats),
consecutive access of statistics table throws error message
and uses transient statistics.
This change makes it easier for users to understand and
resolve the issue when the statistics tables have been
modified or corrupted.
Copy file name to clipboardExpand all lines: mysql-test/main/mysql_upgrade.result
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2518,7 +2518,8 @@ name dl
2518
2518
# Check that mysql_upgrade can be run on mysqldump
2519
2519
# of mysql schema from previous versions
2520
2520
#
2521
-
call mtr.add_suppression("innodb_(table|index)_stats has length mismatch in the column name table_name");
2521
+
call mtr.add_suppression("InnoDB: Fetch of persistent statistics requested for table `mysql`\\.`gtid_slave_pos` but the required system tables mysql\\.innodb_table_stats and mysql\\.innodb_index_stats are not present or have unexpected structure");
2522
+
call mtr.add_suppression("InnoDB: Unexpected length of mysql\\.innodb_table_stats\\.table_name");
2522
2523
call mtr.add_suppression("Column count of mysql.proc is wrong. Expected 21, found 20.");
Copy file name to clipboardExpand all lines: mysql-test/main/mysql_upgrade.test
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -526,7 +526,8 @@ SELECT * FROM mysql.plugin WHERE name='unix_socket';
526
526
--echo #
527
527
528
528
# The warning appears during mysql_upgrade, before the schema becomes consistent
529
-
call mtr.add_suppression("innodb_(table|index)_stats has length mismatch in the column name table_name");
529
+
call mtr.add_suppression("InnoDB: Fetch of persistent statistics requested for table `mysql`\\.`gtid_slave_pos` but the required system tables mysql\\.innodb_table_stats and mysql\\.innodb_index_stats are not present or have unexpected structure");
530
+
call mtr.add_suppression("InnoDB: Unexpected length of mysql\\.innodb_table_stats\\.table_name");
530
531
# This comes from opening 10.6 sys.host_summary view that uses sys.format_time function,
531
532
# on still inconsistent mysql.proc, in older versions
532
533
call mtr.add_suppression("Column count of mysql.proc is wrong. Expected 21, found 20.");
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb/r/innodb_stats_create_on_corrupted.result
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
call mtr.add_suppression("InnoDB: Table .*innodb_index_stats.* not found");
2
2
call mtr.add_suppression("InnoDB: Fetch of persistent statistics requested for table .*");
3
-
call mtr.add_suppression("InnoDB: Table mysql\\.innodb_index_stats has length mismatch in the column name stat_description\\. Please run mariadb-upgrade");
3
+
call mtr.add_suppression("InnoDB: Unexpected length of mysql\\.innodb_index_stats\\.stat_description");
4
4
call mtr.add_suppression("InnoDB: Column stat_description in table mysql\\.innodb_index_stats is VARCHAR");
5
5
ALTER TABLE mysql.innodb_index_stats RENAME TO mysql.innodb_index_stats_;
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb/t/innodb_stats_create_on_corrupted.test
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
13
13
call mtr.add_suppression("InnoDB: Table .*innodb_index_stats.* not found");
14
14
call mtr.add_suppression("InnoDB: Fetch of persistent statistics requested for table .*");
15
-
call mtr.add_suppression("InnoDB: Table mysql\\.innodb_index_stats has length mismatch in the column name stat_description\\. Please run mariadb-upgrade");
15
+
call mtr.add_suppression("InnoDB: Unexpected length of mysql\\.innodb_index_stats\\.stat_description");
16
16
call mtr.add_suppression("InnoDB: Column stat_description in table mysql\\.innodb_index_stats is VARCHAR");
0 commit comments