Bug #87253 | innodb partition table has unexpected row lock | ||
---|---|---|---|
Submitted: | 31 Jul 2017 2:36 | Modified: | 22 May 2018 14:53 |
Reporter: | yx jiang | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S2 (Serious) |
Version: | 5.7.18 | OS: | CentOS (6.4) |
Assigned to: | CPU Architecture: | Any | |
Tags: | innodb partition lock |
[31 Jul 2017 2:36]
yx jiang
[31 Jul 2017 5:16]
yx jiang
This happened when isolation level is set to repeatable read
[31 Jul 2017 15:59]
MySQL Verification Team
Indeed. I changed several parameters, but there is still difference in behaviour between partitioned and non-partitioned table. Verified as reported.
[16 Apr 2018 6:23]
Zhenghu Wen
this bug is very similar with https://bugs.mysql.com/bug.php?id=87619,and the bugfix commit is https://github.com/mysql/mysql-server/commit/2d4bb76bf09df2901cef9324e2264bc2678b32aa。 what different is bug#87619 using no unique key。 and this bug use primary key prefix。both should hold a gap lock,but not next-key lock for next record。 so it seem that we could modify Partition_helper::handle_ordered_next just like Partition_helper::handle_unordered_next in 2d4bb76bf09df2901cef9324e2264bc2678b32aa
[16 Apr 2018 6:27]
Zhenghu Wen
this code and mysqltest works in my test (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: 87235.patch (application/octet-stream, text), 4.03 KiB.
[16 Apr 2018 12:17]
MySQL Verification Team
Thank you for your contribution.
[22 May 2018 14:53]
Jon Stephens
Documented fix in the MySQL 5.7.23 and 8.0.13 changelogs as follows: An extraneous row lock was imposed by an update to a partitioned InnoDB table. Closed.