Bug #17169 Partitions: out of memory if add partition and unique
Submitted: 6 Feb 2006 23:37 Modified: 23 Feb 2006 11:22
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Partitions Severity:S3 (Non-critical)
Version:5.1.7-beta-debug | OS:Linux (SUSE 10.0)
Assigned to: Jim Winstead CPU Architecture:Any

[6 Feb 2006 23:37] Peter Gulutzan
Description:
I create a partitioned table.
The table has a unique column, which is also the partition-by column.
I try to add another partition.
I get an out-of-memory error.

How to repeat:
mysql> create table tpax (s1 int, unique (s1)) partition by list (s1) (partition                              x1 VALUES in (10), partition x2 values in (20));
Query OK, 0 rows affected (0.04 sec)

mysql> alter table tpax add partition (partition x3 values in (30));
ERROR 1037 (HY001): Out of memory; restart server and try again (needed 8 bytes)
[7 Feb 2006 0:05] MySQL Verification Team
Thank you for the bug report.

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.1.7-beta-debug

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create table tpax (s1 int, unique (s1)) partition by list (s1) (partition
    ->                              x1 VALUES in (10), partition x2 values in (20));
Query OK, 0 rows affected (0.02 sec)

mysql> alter table tpax add partition (partition x3 values in (30));
ERROR 1037 (HY001): Out of memory; restart server and try again (needed 8 bytes)
mysql>
[16 Feb 2006 16: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/2742
[17 Feb 2006 22:42] Jim Winstead
Fixed in 5.1.8.
[23 Feb 2006 11:22] 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 bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented bugfix in 5.1.8 changelog; closed.