Bug #24502 | reorganize partition closes connection. | ||
---|---|---|---|
Submitted: | 22 Nov 2006 12:49 | Modified: | 15 Jan 2007 15:22 |
Reporter: | Etienne Bonanno | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S1 (Critical) |
Version: | 5.1.14-BK, 5.1.12 Beta | OS: | Linux (Linux (CentOS)) |
Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
Tags: | Q1 |
[22 Nov 2006 12:49]
Etienne Bonanno
[22 Nov 2006 13:01]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described, also with latest 5.1.14-BK on Linux: mysql> select version(); +-------------------+ | version() | +-------------------+ | 5.1.14-beta-debug | +-------------------+ 1 row in set (0.00 sec) mysql> CREATE TABLE `OrigCalls_99` ( -> `uniqueId` varchar(32) NOT NULL, -> `aNumber` varchar(15) NOT NULL, -> `bNumber` varchar(30) NOT NULL, -> `callStartTS` datetime NOT NULL, -> `callAnswerTS` datetime DEFAULT NULL, -> `callEndTS` datetime NOT NULL, -> `totalDuration` int(11) NOT NULL, -> `disposition` varchar(20) NOT NULL, -> `amaFlags` varchar(20) NOT NULL, -> `userType` int(11) NOT NULL, -> `LRN` varchar(6) NOT NULL, -> `ratePlanId` int(11) NOT NULL, -> `callCost` int(11) NOT NULL, -> `billedDuration` int(11) NOT NULL, -> `errorId` int(11) NOT NULL, -> `asteriskError` int(11) NOT NULL -> ) ENGINE=InnoDB DEFAULT CHARSET=latin1 -> PARTITION BY RANGE (TO_DAYS(callStartTS)) SUBPARTITION BY HASH ( -> CONVERT(aNumber, SIGNED)) SUBPARTITIONS 40 (PARTITION p_112006 VALUES LE SS THAN -> (TO_DAYS('2006-11-01')) ENGINE = InnoDB, PARTITION p_X VALUES LESS THAN MAXVALUE -> ENGINE = InnoDB); Query OK, 0 rows affected (0.38 sec) mysql> ALTER TABLE OrigCalls_99 -> REORGANIZE PARTITION p_X INTO ( -> PARTITION p_122006 VALUES LESS THAN (TO_DAYS('2006-12-01')), -> PARTITION p_X VALUES LESS THAN MAXVALUE -> ); ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> Number of processes running now: 0 061122 13:25:47 mysqld restarted
[22 Nov 2006 13:05]
Valeriy Kravchuk
Resolved stack trace, if needed: openxs@suse:~/dbs/5.1> bin/resolve_stack_dump -s /tmp/mysqld51.sym -n 24502.st ack 0x822ab8c handle_segfault + 412 0x83df63b _ZN14partition_info20check_partition_infoEP3THDPP10handlertonP7handler P24st_ha_create_informationb + 895 0x817a0ec _Z21prep_alter_part_tableP3THDP8st_tableP13st_alter_infoP24st_ha_creat e_informationP10handlertonPbPj + 5750 0x835d995 _Z17mysql_alter_tableP3THDPcS1_P24st_ha_create_informationP13st_table_ listR4ListI12create_fieldERS6_I3KeyEjP8st_orderbP13st_alt + 2871 0x8246b90 _Z21mysql_execute_commandP3THD + 5930 0x824db7c _Z11mysql_parseP3THDPcj + 420 0x8243d78 _Z16dispatch_command19enum_server_commandP3THDPcj + 1918 0x82435ea _Z10do_commandP3THD + 518 0x8242773 handle_one_connection + 973 0x40047aa7 _end + 931011367 0x4023ec2e _end + 933072046
[18 Dec 2006 10:05]
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/17101 ChangeSet@1.2359, 2006-12-18 14:39:23+04:00, holyfoot@mysql.com +3 -0 bug #24502 (reorganize partition closes connection) when REORGANIZE creates new partition, no_subparts for that partition isn't set right (call handler::set_partitions_defaults always returns 1) Normally the number of subpartitions should be inherited from the table.
[15 Jan 2007 8:23]
Sergei Glukhov
Fixed in 5.1.15-beta
[15 Jan 2007 15: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 bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented fix in 5.1.15 changelog.