with expand_fast_index_creation the restore of secondary keys is not online
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
New
|
Undecided
|
Unassigned |
Bug Description
Let's say you have this table:
> show create table t\G
*******
Table: t
Create Table: CREATE TABLE `t` (
`i` int(11) NOT NULL AUTO_INCREMENT,
`c` char(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`i`),
KEY `c` (`c`)
) ENGINE=InnoDB AUTO_INCREMENT=
and you enable expand_
If you run a not online ALTER like this one:
alter table t force , ROW_FORMAT=DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
The table will be locked and this simple UPDATE statement will wait:
> update t set c="przemek" where i=12312;
The problem is that when the "restoring secondary keys" process starts the table remains locked. The restore of secondary keys should be online. So, actually using expand_
DROP INDEX...
ALTER...
ADD INDEX...
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-3393