-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug#35410528 : INSTANT DDL crashes 8.0.32 after upgrading from 5.7.41
Background: When tables are loaded in mem cache (dict_table_t) they go through fill_dict_table() which makes sure all in mem metadata is updated for the tables correctly. But in case of upgrade from 5.7, tables are loaded in dict_table_t cache from dict_load_table(). And then it remains in cache to be used. Issue: During upgrade, when the table is loaded from dict_load_table(), it doesn't set the initial/current/total/_column_count metadata of dict_table_t. Which causes issues when table is used after INSTANT ADD/DROP DDL. Note this is done only once and next server restarts, the table is loaded from fill_dict_table() function. And this is why if there is a restart after upgrade, the issue is not seen. Fix: Made sure when the table is loaded from dict_load_table() during upgrade, the column count metadata is also set correctly. Change-Id: I7729a9e03683737bfe8b3025203f31551b710f70
- Loading branch information
1 parent
e9b5041
commit bbcb9bc
Showing
2 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters