backup lock should not block partitioned innodb table updates
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.6 |
Triaged
|
High
|
Unassigned | |||
5.7 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Percona Server use a better lightweight solution`LOCK TABLS FOR BACK` and `LOCK BINLOG FOR BACKUP` to substitute 'FLUSH TABLES WITH READ LOCK' in physical backup scene.
The backup lock should not block update to InnoDB tables by design as described in doc: https:/
But partition table is not handle properly if the underlying engine is InnoDB, and updates to InnoDB partition table will be block by backup lock.
testcase:
CREATE TABLE t1(id INT, name VARCHAR(30), PRIMARY KEY(id)) ENGINE=InnoDB PARTITION BY HASH(id) PARTITIONS 2;
session A:
lock tables for backup;
session B:
insert into t1 values(1, 'MySQL'); ## will be blocked
session A:
show processlist; ## check session B state is 'Waiting for backup lock'
tags: | added: backup-locks |
Not reproducible on latest PS 5.7.18-15 using provided test case.