Bug #40595 | Non-matching rows not released with READ-COMMITTED on tables with partitions | ||
---|---|---|---|
Submitted: | 9 Nov 2008 0:25 | Modified: | 10 Dec 2008 21:01 |
Reporter: | Elena Stepanova | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S3 (Non-critical) |
Version: | 5.1.29 | OS: | Any |
Assigned to: | Mattias Jonsson | CPU Architecture: | Any |
Tags: | innodb_locks_unsafe_for_binlog, read committed |
[9 Nov 2008 0:25]
Elena Stepanova
[10 Nov 2008 9:17]
Mattias Jonsson
ha_partition DO propagate the call to unlock_row() from the 'root' handler to the innodb handler. I will try to find out why the locks are not releases.
[10 Nov 2008 9:47]
Mattias Jonsson
The problem was that the handler virtual function try_semi_consistent_read was not implemented in ha_partition, adding that fixes this bug. Will commit a patch soon.
[10 Nov 2008 20:14]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/58371 2705 Mattias Jonsson 2008-11-10 Bug#40595: Non-matching rows not released with READ-COMMITTED on tables with partitions Problem was that the handler function try_semi_consistent_read was not propagated to the innodb handler. Solution was to implement that function in the partitioning handler.
[12 Nov 2008 14:37]
Mattias Jonsson
Mikael approved it.
[14 Nov 2008 22:51]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/58856 2708 Mattias Jonsson 2008-11-14 [merge] Bug#40595: Non-matching rows not released with READ-COMMITTED on tables with partitions Pre push fix, optimized replace_regex, to cut 2 seconds from test time.
[15 Nov 2008 0:48]
Mattias Jonsson
Patch queued in mysql-6.0-bugteam and mysql-5.1-bugteam
[24 Nov 2008 6:58]
Mattias Jonsson
I will add was_semi_consisten_read() too.
[8 Dec 2008 10:22]
Bugs System
Pushed into 5.1.31 (revid:mattias.jonsson@sun.com-20081114225117-rfbmi7134x4arcq5) (version source revid:mattias.jonsson@sun.com-20081114232648-afp3f61r8trswd8w) (pib:5)
[8 Dec 2008 11:32]
Bugs System
Pushed into 6.0.9-alpha (revid:mattias.jonsson@sun.com-20081114225117-rfbmi7134x4arcq5) (version source revid:ingo.struewing@sun.com-20081121151447-dtf2ofz2ys0zqed1) (pib:5)
[10 Dec 2008 21:01]
Paul DuBois
Noted in 5.1.31, 6.0.9 changelogs. With READ COMMITTED transaction isolation level, InnoDB uses a semi-consistent read that releases non-matching rows after MySQL has evaluated the WHERE clause. However, this was not happening if the table used partitions.
[16 Dec 2008 11:45]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/61751 2733 Mattias Jonsson 2008-12-16 post push fix for bug#40595 Addition of hander function was_semi_consistent_read
[16 Dec 2008 13:23]
Mattias Jonsson
Pushed the addition of was_semi_consistent_read to mysql-5.1-bugteam and mysql-6.0-bugteam
[15 Jan 2009 6:33]
Bugs System
Pushed into 5.1.31 (revid:joro@sun.com-20090115053147-tx1oapthnzgvs1ro) (version source revid:azundris@mysql.com-20081230114838-cn52tu180wcrvh0h) (merge vers: 5.1.31) (pib:6)
[19 Jan 2009 11:26]
Bugs System
Pushed into 5.1.31-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090119095303-uwwvxiibtr38djii) (version source revid:tomas.ulin@sun.com-20090115073240-1wanl85vlvw2she1) (merge vers: 5.1.31-ndb-6.2.17) (pib:6)
[19 Jan 2009 13:04]
Bugs System
Pushed into 5.1.31-ndb-6.3.21 (revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (version source revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (merge vers: 5.1.31-ndb-6.3.21) (pib:6)
[19 Jan 2009 16:10]
Bugs System
Pushed into 5.1.31-ndb-6.4.1 (revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (version source revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (merge vers: 5.1.31-ndb-6.4.1) (pib:6)
[20 Jan 2009 18:57]
Bugs System
Pushed into 6.0.10-alpha (revid:joro@sun.com-20090119171328-2hemf2ndc1dxl0et) (version source revid:azundris@mysql.com-20081230114916-c290n83z25wkt6e4) (merge vers: 6.0.9-alpha) (pib:6)