--source include/have_partition.inc
|
|
CREATE TABLE t1 (i INT, col_blob BLOB NOT NULL DEFAULT '') PARTITION BY RANGE(i) (PARTITION p0 VALUES LESS THAN (10));
|
CREATE TABLE t2 (a INT);
|
SET SQL_MODE= 'EMPTY_STRING_IS_NULL';
|
LOCK TABLE t1 WRITE, t2 WRITE;
|
--error ER_INVALID_DEFAULT
|
ALTER TABLE t1 ADD PARTITION (PARTITION p1 VALUES LESS THAN (20));
|
|
DROP TABLE t1, t2;
|
10.4 aa7f2578
|
mysqld: /data/src/10.4/sql/table_cache.cc:463: void tc_release_table(TABLE*): Assertion `!table->pos_in_locked_tables' failed.
|
200405 2:57:37 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f2ab124b102 in __GI___assert_fail (assertion=0x564c891b5300 "!table->pos_in_locked_tables", file=0x564c891b4da0 "/data/src/10.4/sql/table_cache.cc", line=463, function=0x564c891b6460 <tc_release_table(TABLE*)::__PRETTY_FUNCTION__> "void tc_release_table(TABLE*)") at assert.c:101
|
#8 0x0000564c8782944a in tc_release_table (table=0x62000003e0f0) at /data/src/10.4/sql/table_cache.cc:463
|
#9 0x0000564c87073b6e in close_thread_table (thd=0x62b00005b270, table_ptr=0x62b00005b350) at /data/src/10.4/sql/sql_base.cc:1078
|
#10 0x0000564c87e814aa in handle_alter_part_error (lpt=0x7f2aa8296720, action_completed=false, drop_partition=false, frm_install=false, close_table=false) at /data/src/10.4/sql/sql_partition.cc:6956
|
#11 0x0000564c87e82d97 in fast_alter_partition_table (thd=0x62b00005b270, table=0x62000003d0f0, alter_info=0x7f2aa8299750, create_info=0x7f2aa8299830, table_list=0x62b0000623f0, db=0x7f2aa8297d70, table_name=0x7f2aa8297d80) at /data/src/10.4/sql/sql_partition.cc:7375
|
#12 0x0000564c87468a78 in mysql_alter_table (thd=0x62b00005b270, new_db=0x62b00005fa30, new_name=0x62b00005fe38, create_info=0x7f2aa8299830, table_list=0x62b0000623f0, alter_info=0x7f2aa8299750, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:9875
|
#13 0x0000564c875e2f7b in Sql_cmd_alter_table::execute (this=0x62b0000632d8, thd=0x62b00005b270) at /data/src/10.4/sql/sql_alter.cc:502
|
#14 0x0000564c872154c7 in mysql_execute_command (thd=0x62b00005b270) at /data/src/10.4/sql/sql_parse.cc:6101
|
#15 0x0000564c8722147a in mysql_parse (thd=0x62b00005b270, rawbuf=0x62b000062290 "ALTER TABLE t1 ADD PARTITION (PARTITION p1 VALUES LESS THAN (20))", length=65, parser_state=0x7f2aa829e5d0, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7900
|
#16 0x0000564c871f62ef in dispatch_command (command=COM_QUERY, thd=0x62b00005b270, packet=0x629000226271 "ALTER TABLE t1 ADD PARTITION (PARTITION p1 VALUES LESS THAN (20))", packet_length=65, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1841
|
#17 0x0000564c871f2a98 in do_command (thd=0x62b00005b270) at /data/src/10.4/sql/sql_parse.cc:1359
|
#18 0x0000564c875cadd4 in do_handle_one_connection (connect=0x6110000083f0) at /data/src/10.4/sql/sql_connect.cc:1412
|
#19 0x0000564c875ca676 in handle_one_connection (arg=0x6110000083f0) at /data/src/10.4/sql/sql_connect.cc:1316
|
#20 0x0000564c88c0866d in pfs_spawn_thread (arg=0x61600000ccf0) at /data/src/10.4/storage/perfschema/pfs.cc:1869
|
#21 0x00007f2ab1ac5fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
|
#22 0x00007f2ab13144cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Non-debug build does not crash, ALTER fails with ER_INVALID_DEFAULT which is probably okay, but DROP TABLE causes an unexpected error ER_TABLE_NOT_LOCKED:
10.4 non-debug
|
mysqltest: At line 10: query 'DROP TABLE t1, t2' failed: 1100: Table 't2' was not locked with LOCK TABLES
|
Reproducible on 10.4, 10.5 with at least InnoDB and MyISAM.
Not reproducible on 10.3, but because on 10.3 ADD PARTITION passes, it doesn't cause ER_INVALID_DEFAULT.
{"report":{"fcp":972.2000000476837,"ttfb":363.40000009536743,"pageVisibility":"visible","entityId":85090,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b757503a-f60b-4a00-bc56-7da3621bd42e","navigationType":0,"readyForUser":1046.6000001430511,"redirectCount":0,"resourceLoadedEnd":1003.7999999523163,"resourceLoadedStart":368.7000000476837,"resourceTiming":[{"duration":150.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":368.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":368.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":150,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":368.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":368.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":158.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":369,"connectEnd":369,"connectStart":369,"domainLookupEnd":369,"domainLookupStart":369,"fetchStart":369,"redirectEnd":0,"redirectStart":0,"requestStart":369,"responseEnd":527.2999999523163,"responseStart":527.2999999523163,"secureConnectionStart":369},{"duration":254.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":369.2000000476837,"connectEnd":369.2000000476837,"connectStart":369.2000000476837,"domainLookupEnd":369.2000000476837,"domainLookupStart":369.2000000476837,"fetchStart":369.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":369.2000000476837,"responseEnd":623.9000000953674,"responseStart":623.9000000953674,"secureConnectionStart":369.2000000476837},{"duration":258.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":369.2999999523163,"connectEnd":369.2999999523163,"connectStart":369.2999999523163,"domainLookupEnd":369.2999999523163,"domainLookupStart":369.2999999523163,"fetchStart":369.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":369.2999999523163,"responseEnd":627.6000001430511,"responseStart":627.6000001430511,"secureConnectionStart":369.2999999523163},{"duration":258.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":369.40000009536743,"connectEnd":369.40000009536743,"connectStart":369.40000009536743,"domainLookupEnd":369.40000009536743,"domainLookupStart":369.40000009536743,"fetchStart":369.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":369.40000009536743,"responseEnd":628.1000001430511,"responseStart":628.1000001430511,"secureConnectionStart":369.40000009536743},{"duration":259.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":369.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":369.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":629.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":259.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":369.5,"connectEnd":369.5,"connectStart":369.5,"domainLookupEnd":369.5,"domainLookupStart":369.5,"fetchStart":369.5,"redirectEnd":0,"redirectStart":0,"requestStart":369.5,"responseEnd":628.6000001430511,"responseStart":628.6000001430511,"secureConnectionStart":369.5},{"duration":259.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":369.60000014305115,"connectEnd":369.60000014305115,"connectStart":369.60000014305115,"domainLookupEnd":369.60000014305115,"domainLookupStart":369.60000014305115,"fetchStart":369.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":369.60000014305115,"responseEnd":629.1000001430511,"responseStart":629.1000001430511,"secureConnectionStart":369.60000014305115},{"duration":259.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":369.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":369.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":629.5,"responseStart":0,"secureConnectionStart":0},{"duration":259.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":369.90000009536743,"connectEnd":369.90000009536743,"connectStart":369.90000009536743,"domainLookupEnd":369.90000009536743,"domainLookupStart":369.90000009536743,"fetchStart":369.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":369.90000009536743,"responseEnd":629.6000001430511,"responseStart":629.6000001430511,"secureConnectionStart":369.90000009536743},{"duration":350.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":370.5,"connectEnd":370.5,"connectStart":370.5,"domainLookupEnd":370.5,"domainLookupStart":370.5,"fetchStart":370.5,"redirectEnd":0,"redirectStart":0,"requestStart":370.5,"responseEnd":721.2000000476837,"responseStart":721.2000000476837,"secureConnectionStart":370.5},{"duration":633.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":370.5,"connectEnd":370.5,"connectStart":370.5,"domainLookupEnd":370.5,"domainLookupStart":370.5,"fetchStart":370.5,"redirectEnd":0,"redirectStart":0,"requestStart":370.5,"responseEnd":1003.7999999523163,"responseStart":1003.7999999523163,"secureConnectionStart":370.5},{"duration":46.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":675.7000000476837,"connectEnd":675.7000000476837,"connectStart":675.7000000476837,"domainLookupEnd":675.7000000476837,"domainLookupStart":675.7000000476837,"fetchStart":675.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":675.7000000476837,"responseEnd":722.1000001430511,"responseStart":722.1000001430511,"secureConnectionStart":675.7000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":189,"responseStart":363,"responseEnd":364,"domLoading":366,"domInteractive":1098,"domContentLoadedEventStart":1098,"domContentLoadedEventEnd":1142,"domComplete":1825,"loadEventStart":1825,"loadEventEnd":1826,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1080.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1081.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1081.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":1083.7999999523163},{"name":"activityTabFullyLoaded","time":1147.4000000953674}],"measures":[],"correlationId":"90bce9fb9183b8","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":116,"dbReadsTimeInMs":52,"dbConnsTimeInMs":61,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}