Bug #74869 | handle_fatal_signal (sig=11) in ha_partition::handle_opt_partitions | ||
---|---|---|---|
Submitted: | 14 Nov 2014 16:23 | Modified: | 10 Mar 2015 17:45 |
Reporter: | Ramesh Sivaraman | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S3 (Non-critical) |
Version: | 5.6.20 | OS: | Linux (CentOS 7) |
Assigned to: | CPU Architecture: | Any | |
Tags: | debug |
[14 Nov 2014 16:23]
Ramesh Sivaraman
[14 Nov 2014 16:41]
MySQL Verification Team
C:\dbs>net start mysqld57 The MySQLD57 service is starting... The MySQLD57 service was started successfully. C:\dbs>57 C:\dbs>c:\dbs\5.7\bin\mysql -uroot --port=3570 --prompt="mysql 5.7 > " Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.7.6-m16-debug Source distribution Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.7 > DROP DATABASE test;CREATE DATABASE test;USE test; Query OK, 2 rows affected (0.72 sec) Query OK, 1 row affected (0.02 sec) Database changed mysql 5.7 > create TABLE t1(a INT unsigned)partition by range (a) (partition p0 values less than (1),partition p1 values less than MAXVALUE) ; Query OK, 0 rows affected (0.59 sec) mysql 5.7 > lock TABLE t1 write; Query OK, 0 rows affected (0.00 sec) mysql 5.7 > ALTER TABLE t1 REORGANIZE PARTITION p0 INTO(PARTITION s0 VALUES LESS THAN (1),PARTITION s1 VALUES LESS THAN (1)); ERROR 1493 (HY000): VALUES LESS THAN value must be strictly increasing for each partition mysql 5.7 > LOAD INDEX INTO CACHE t1 INDEX(PRIMARY,b)IGNORE LEAVES; ERROR 2013 (HY000): Lost connection to MySQL server during query
[14 Nov 2014 16:52]
MySQL Verification Team
Thank you for the bug report. 14038c748 mysqld.exe!ha_partition::handle_opt_partitions()[ha_partition.cc:1446] 14038db02 mysqld.exe!ha_partition::preload_keys()[ha_partition.cc:1199] 13fb9be5d mysqld.exe!mysql_admin_table()[sql_admin.cc:663] 13fb99556 mysqld.exe!mysql_preload_keys()[sql_admin.cc:1084] 13f746101 mysqld.exe!mysql_execute_command()[sql_parse.cc:2633] 13f74450a mysqld.exe!mysql_parse()[sql_parse.cc:5397] 13f74def8 mysqld.exe!dispatch_command()[sql_parse.cc:1252] 13f74d09c mysqld.exe!do_command()[sql_parse.cc:833] 13f5c0c3c mysqld.exe!handle_connection()[connection_handler_per_thread.cc:298] 1403127b8 mysqld.exe!pfs_spawn_thread()[pfs.cc:2139] 13fd7eca6 mysqld.exe!pthread_start()[my_winthread.c:73] 1404803a5 mysqld.exe!_callthreadstartex()[threadex.c:376] 1404805f7 mysqld.exe!_threadstartex()[threadex.c:359] 773659ed kernel32.dll!BaseThreadInitThunk() 7749c541 ntdll.dll!RtlUserThreadStart()
[23 Feb 2015 9:11]
Mattias Jonsson
Posted by developer: Base bug fixed and pushed which also fixes this bug and included the test case from here.
[10 Mar 2015 17:45]
Jon Stephens
Documented fix in the 5.6.24 and 5.7.7 changelog as follows: A number of ALTER TABLE statements that attempted to add a partition, column, or index to a partitioned table while a write lock was in effect for this table were not handled correctly. This also fixes BUG#74451, BUG#74478, BUG#74491, BUG#74560, BUG#74746, BUG#74841, and BUG#74860. Closed.
[16 Mar 2015 12:37]
Daniel Price
Posted by developer: The base bug under which this bug is fixed (Bug #19856162 / MySQL Bug #74451) is also fixed in trunk (5.8.0). The changelog entry has been updated to include the 5.8.0 version number.