Bug #32247 | Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table) | ||
---|---|---|---|
Submitted: | 9 Nov 2007 20:30 | Modified: | 14 Dec 2007 16:52 |
Reporter: | Joerg Bruehe | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S2 (Serious) |
Version: | 5.1.23 (pre) + 6.0.4-alpha (pre) | OS: | Linux (PPC) |
Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[9 Nov 2007 20:30]
Joerg Bruehe
[9 Nov 2007 20:37]
Omer Barnir
To clarify, the correct value that should be listed in the show command is 1001 as the check is done after 1000 rows are inserted into the table.
[13 Nov 2007 19:07]
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/37691 ChangeSet@1.2645, 2007-11-13 23:01:43+04:00, holyfoot@mysql.com +4 -0 Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table). ha_partition::update_create_info() just calls update_create_info of a first partition, so only get the autoincrement maximum of the first partition, so SHOW CREATE TABLE can show small AUTO_INCREMENT parameters. Fixed by implementing ha_partition::update_create_info() in a way other handlers work.
[22 Nov 2007 14:23]
Mikael Ronström
This patch would work if all engines used this variable in a consistent manner. However at least archive uses it somewhat differently. So I suggest that you fix the archive engines use of the auto_increment_value variable to be correct and retain the patch as is.
[23 Nov 2007 11:25]
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/38347 ChangeSet@1.2645, 2007-11-23 15:19:51+04:00, holyfoot@mysql.com +7 -0 Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table). ha_partition::update_create_info() just calls update_create_info of a first partition, so only get the autoincrement maximum of the first partition, so SHOW CREATE TABLE can show small AUTO_INCREMENT parameters. Fixed by implementing ha_partition::update_create_info() in a way other handlers work.
[23 Nov 2007 14:32]
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/38378 ChangeSet@1.2645, 2007-11-23 18:26:46+04:00, holyfoot@mysql.com +6 -0 Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table). ha_partition::update_create_info() just calls update_create_info of a first partition, so only get the autoincrement maximum of the first partition, so SHOW CREATE TABLE can show small AUTO_INCREMENT parameters. Fixed by implementing ha_partition::update_create_info() in a way other handlers work. HA_ARCHIVE:stats.auto_increment handling made consistent with other engines
[30 Nov 2007 14:04]
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/38965 ChangeSet@1.2645, 2007-11-30 17:58:14+04:00, holyfoot@mysql.com +8 -0 Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table). ha_partition::update_create_info() just calls update_create_info of a first partition, so only get the autoincrement maximum of the first partition, so SHOW CREATE TABLE can show small AUTO_INCREMENT parameters. Fixed by implementing ha_partition::update_create_info() in a way other handlers work. HA_ARCHIVE:stats.auto_increment handling made consistent with other engines
[30 Nov 2007 15:44]
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/38981 ChangeSet@1.2645, 2007-11-30 19:38:27+04:00, holyfoot@mysql.com +8 -0 Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table). ha_partition::update_create_info() just calls update_create_info of a first partition, so only get the autoincrement maximum of the first partition, so SHOW CREATE TABLE can show small AUTO_INCREMENT parameters. Fixed by implementing ha_partition::update_create_info() in a way other handlers work. HA_ARCHIVE:stats.auto_increment handling made consistent with other engines
[6 Dec 2007 10:12]
Mattias Jonsson
Mikael approved this, OK to push.
[6 Dec 2007 12:46]
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/39405 ChangeSet@1.2645, 2007-12-06 16:39:42+04:00, holyfoot@mysql.com +6 -0 Bug #32247 Test reports wrong value of "AUTO_INCREMENT" (on a partitioned InnoDB table). ha_partition::update_create_info() just calls update_create_info of a first partition, so only get the autoincrement maximum of the first partition, so SHOW CREATE TABLE can show small AUTO_INCREMENT parameters. Fixed by implementing ha_partition::update_create_info() in a way other handlers work. HA_ARCHIVE:stats.auto_increment handling made consistent with other engines
[14 Dec 2007 8:19]
Bugs System
Pushed into 5.1.23-rc
[14 Dec 2007 8:22]
Bugs System
Pushed into 6.0.5-alpha
[14 Dec 2007 16:52]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented in the 5.1.23 and 6.0.5 changelogs as follows: SHOW CREATE TABLE misreported the value of AUTO_INCREMENT for partitioned tables using either of the InnoDB or ARCHIVE storage engines.
[14 May 2008 15:21]
Bugs System
Pushed into 5.1.25-rc
[22 May 2008 9:50]
Bugs System
Pushed into 6.0.6-alpha