| Bug #40389 | REORGANIZE PARTITION crashes when only using one partition | ||
|---|---|---|---|
| Submitted: | 29 Oct 2008 11:15 | Modified: | 20 Jan 2009 22:12 |
| Reporter: | Mattias Jonsson | ||
| Status: | Closed | ||
| Category: | Server: Partition | Severity: | S1 (Critical) |
| Version: | 5.1, 6.0 bzr | OS: | Any |
| Assigned to: | Mattias Jonsson | Target Version: | 5.1+ |
| Triage: | Triaged: D1 (Critical) | ||
[29 Oct 2008 11:15]
Mattias Jonsson
[29 Oct 2008 12:13]
Sveta Smirnova
Thank you for the report. Verified as described.
[2 Dec 2008 11:18]
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/60360 2690 Mattias Jonsson 2008-12-02 Bug#40389: REORGANIZE PARTITION crashes when only using one partition The non documented command 'ALTER PARTITION t REORGANIZE PARTITION' (without any partitions!) which only make sense for nativly partitioned engines, such as NDB, crashes the server if there was no change of number of partitions. The problem was wrong usage of fast_end_partition function, which led to usage of a non initialized variable.
[10 Dec 2008 10:47]
Mattias Jonsson
Pushed to mysql-5.1-bugteam and mysql-6.0-bugteam
[15 Jan 2009 7:39]
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)
[15 Jan 2009 17:24]
Jon Stephens
Documented bugfix in the 5.1.31 changelog as follows:
ALTER TABLE ... REORGANIZE PARTITION could crash the server when
the number of partitions was not changed.
Note that the statement as used here was recently documented for the MySQL Cluster NDB
6.4.0 release.
Set bug status back to PQ pending push to 6.0 tree.
[15 Jan 2009 19:31]
Jon Stephens
Status should have been set to NDI.
[19 Jan 2009 12:23]
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 14:01]
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 14:48]
Jon Stephens
Set back to NDI pending merge to 6.0.
[19 Jan 2009 17:07]
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)
[19 Jan 2009 18:02]
Jon Stephens
Set back to NDI pending merge to 6.0.
[20 Jan 2009 19:54]
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)
[20 Jan 2009 22:12]
Jon Stephens
Fix also noted in 6.0.10 changelog; closed.
[3 Feb 2009 7:38]
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/64966 3239 Mattias Jonsson 2009-02-03 Bug#41945: cluster reorg part on single partition segv in mysqld refix of Bug #40389: REORGANIZE PARTITION crashes when only using one partition Problem was a remaining partition info struct that was not cleared, resulting in an inconsitent .frm-file Solution was to only allow REORGANIZE PARTITION on auto partitioned native engines, such as NDB, and not trying to do any partitioning specific.
