- take the attached archive from
MDEV-9233 ;
- start server on Linux with --lower-case-table-names=1;
- try to run
alter table t1 partition by range (to_days(creation_time))
|
(partition FirstPart VALUES LESS THAN (1), partition LastPart VALUES LESS THAN MAXVALUE);
|
Results on different versions differ.
5.5 (as of commit 9c9d10b441fe79b111509949ca40afe1a6284c0f) survives, but throws an error:
MariaDB [test]> alter table t1 partition by range (to_days(creation_time)) (partition FirstPart VALUES LESS THAN (1), partition LastPart VALUES LESS THAN MAXVALUE);
|
ERROR 1025 (HY000): Error on rename of './test/t1' to './test/#sql2-7743-2' (errno: 155)
|
10.0 (as of commit 74b1af19e9270a932f9e5f907eff53852984a7d3) and 10.1 go down with an assertion failure:
2016-01-26 20:50:13 7f06e2fc2700 InnoDB: Assertion failure in thread 139667554707200 in file lock0lock.cc line 4843
|
InnoDB: Failing assertion: trx->dict_operation != TRX_DICT_OP_NONE
|
#5 0x00007f06e0f36538 in abort () from /lib64/libc.so.6
|
#6 0x0000000000a5c676 in lock_release (trx=0x7f06b72b2f78) at /src/10.0/storage/xtradb/lock/lock0lock.cc:4843
|
#7 0x0000000000a61dd3 in lock_trx_release_locks (trx=0x7f06b72b2f78) at /src/10.0/storage/xtradb/lock/lock0lock.cc:7145
|
#8 0x0000000000b7d2d2 in trx_commit_in_memory (trx=0x7f06b72b2f78, lsn=1639251) at /src/10.0/storage/xtradb/trx/trx0trx.cc:1406
|
#9 0x0000000000b7dd85 in trx_commit_low (trx=0x7f06b72b2f78, mtr=0x7f06e2fbc1d0) at /src/10.0/storage/xtradb/trx/trx0trx.cc:1621
|
#10 0x0000000000b7ddf6 in trx_commit (trx=0x7f06b72b2f78) at /src/10.0/storage/xtradb/trx/trx0trx.cc:1642
|
#11 0x0000000000b7e75f in trx_commit_for_mysql (trx=0x7f06b72b2f78) at /src/10.0/storage/xtradb/trx/trx0trx.cc:1902
|
#12 0x0000000000b04003 in row_rename_table_for_mysql (old_name=0x7f06e2fbce80 "test/t1#p#lastpart", new_name=0x7f06e2fbca80 "test/#sql2-77c0-e#P#LastPart", trx=0x7f06b72b2f78, commit=true) at /src/10.0/storage/xtradb/row/row0mysql.cc:5232
|
#13 0x0000000000a0c959 in innobase_rename_table (trx=0x7f06b72b2f78, from=0x7f06e2fbd8b0 "./test/t1#P#LastPart", to=0x7f06e2fbdab0 "./test/#sql2-77c0-e#P#LastPart") at /src/10.0/storage/xtradb/handler/ha_innodb.cc:11417
|
#14 0x0000000000a0cb00 in ha_innobase::rename_table (this=0x7f06c8430088, from=0x7f06e2fbd8b0 "./test/t1#P#LastPart", to=0x7f06e2fbdab0 "./test/#sql2-77c0-e#P#LastPart") at /src/10.0/storage/xtradb/handler/ha_innodb.cc:11495
|
#15 0x0000000000864097 in handler::ha_rename_table (this=0x7f06c8430088, from=0x7f06e2fbd8b0 "./test/t1#P#LastPart", to=0x7f06e2fbdab0 "./test/#sql2-77c0-e#P#LastPart") at /src/10.0/sql/handler.cc:4280
|
#16 0x0000000000e05028 in ha_partition::del_ren_table (this=0x7f06c842edc0, from=0x7f06e2fbe370 "./test/t1", to=0x7f06e2fbe580 "./test/#sql2-77c0-e") at /src/10.0/sql/ha_partition.cc:2318
|
#17 0x0000000000e01243 in ha_partition::rename_table (this=0x7f06c842edc0, from=0x7f06e2fbe370 "./test/t1", to=0x7f06e2fbe580 "./test/#sql2-77c0-e") at /src/10.0/sql/ha_partition.cc:587
|
#18 0x0000000000864097 in handler::ha_rename_table (this=0x7f06c842edc0, from=0x7f06e2fbe370 "./test/t1", to=0x7f06e2fbe580 "./test/#sql2-77c0-e") at /src/10.0/sql/handler.cc:4280
|
#19 0x000000000071ae4a in mysql_rename_table (base=0x7f06cf5ec870, old_db=0x7f06c842b840 "test", old_name=0x7f06c842b228 "t1", new_db=0x7f06c842b840 "test", new_name=0x7f06e2fbf240 "#sql2-77c0-e", flags=2) at /src/10.0/sql/sql_table.cc:5197
|
#20 0x0000000000723f0f in mysql_alter_table (thd=0x7f06b9df9e70, new_db=0x7f06c842b840 "test", new_name=0x0, create_info=0x7f06e2fc04c0, table_list=0x7f06c842b260, alter_info=0x7f06e2fc0430, order_num=0, order=0x0, ignore=false) at /src/10.0/sql/sql_table.cc:9041
|
#21 0x000000000078bb1b in Sql_cmd_alter_table::execute (this=0x7f06c842bf78, thd=0x7f06b9df9e70) at /src/10.0/sql/sql_alter.cc:312
|
#22 0x0000000000673eb8 in mysql_execute_command (thd=0x7f06b9df9e70) at /src/10.0/sql/sql_parse.cc:5125
|
#23 0x00000000006771f3 in mysql_parse (thd=0x7f06b9df9e70, rawbuf=0x7f06c842b088 "alter table t1 partition by range (to_days(creation_time)) (partition FirstPart VALUES LESS THAN (1), partition LastPart VALUES LESS THAN MAXVALUE)", length=147, parser_state=0x7f06e2fc16a0) at /src/10.0/sql/sql_parse.cc:6565
|
#24 0x0000000000669cbf in dispatch_command (command=COM_QUERY, thd=0x7f06b9df9e70, packet=0x7f06b9d84db1 "", packet_length=147) at /src/10.0/sql/sql_parse.cc:1308
|
#25 0x0000000000668f8c in do_command (thd=0x7f06b9df9e70) at /src/10.0/sql/sql_parse.cc:998
|
#26 0x00000000007872c5 in do_handle_one_connection (thd_arg=0x7f06b9df9e70) at /src/10.0/sql/sql_connect.cc:1377
|
#27 0x0000000000787037 in handle_one_connection (arg=0x7f06b9df9e70) at /src/10.0/sql/sql_connect.cc:1292
|
#28 0x00007f06e2c510a4 in start_thread () from /lib64/libpthread.so.0
|
#29 0x00007f06e0fe504d in clone () from /lib64/libc.so.6
|
{"report":{"fcp":779.9000005722046,"ttfb":164.30000019073486,"pageVisibility":"visible","entityId":55415,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"927f3f9b-2cf0-4138-a81c-a0f16c78c55a","navigationType":0,"readyForUser":919.8000001907349,"redirectCount":0,"resourceLoadedEnd":805.1000003814697,"resourceLoadedStart":176.10000038146973,"resourceTiming":[{"duration":111.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":176.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288,"responseStart":0,"secureConnectionStart":0},{"duration":112,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":176.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":121.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":176.5,"connectEnd":176.5,"connectStart":176.5,"domainLookupEnd":176.5,"domainLookupStart":176.5,"fetchStart":176.5,"redirectEnd":0,"redirectStart":0,"requestStart":176.5,"responseEnd":297.80000019073486,"responseStart":297.80000019073486,"secureConnectionStart":176.5},{"duration":197.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":176.80000019073486,"connectEnd":176.80000019073486,"connectStart":176.80000019073486,"domainLookupEnd":176.80000019073486,"domainLookupStart":176.80000019073486,"fetchStart":176.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":176.80000019073486,"responseEnd":374.6000003814697,"responseStart":374.6000003814697,"secureConnectionStart":176.80000019073486},{"duration":201.70000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":177,"connectEnd":177,"connectStart":177,"domainLookupEnd":177,"domainLookupStart":177,"fetchStart":177,"redirectEnd":0,"redirectStart":0,"requestStart":177,"responseEnd":378.70000076293945,"responseStart":378.70000076293945,"secureConnectionStart":177},{"duration":202,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":177.20000076293945,"connectEnd":177.20000076293945,"connectStart":177.20000076293945,"domainLookupEnd":177.20000076293945,"domainLookupStart":177.20000076293945,"fetchStart":177.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":177.20000076293945,"responseEnd":379.20000076293945,"responseStart":379.20000076293945,"secureConnectionStart":177.20000076293945},{"duration":202.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":177.4000005722046,"connectEnd":177.4000005722046,"connectStart":177.4000005722046,"domainLookupEnd":177.4000005722046,"domainLookupStart":177.4000005722046,"fetchStart":177.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":177.4000005722046,"responseEnd":379.5,"responseStart":379.5,"secureConnectionStart":177.4000005722046},{"duration":267.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":177.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":202.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":177.70000076293945,"connectEnd":177.70000076293945,"connectStart":177.70000076293945,"domainLookupEnd":177.70000076293945,"domainLookupStart":177.70000076293945,"fetchStart":177.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":177.70000076293945,"responseEnd":380.1000003814697,"responseStart":380.1000003814697,"secureConnectionStart":177.70000076293945},{"duration":267.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":177.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":202.70000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":178,"connectEnd":178,"connectStart":178,"domainLookupEnd":178,"domainLookupStart":178,"fetchStart":178,"redirectEnd":0,"redirectStart":0,"requestStart":178,"responseEnd":380.70000076293945,"responseStart":380.70000076293945,"secureConnectionStart":178},{"duration":550.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":178.9000005722046,"connectEnd":178.9000005722046,"connectStart":178.9000005722046,"domainLookupEnd":178.9000005722046,"domainLookupStart":178.9000005722046,"fetchStart":178.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":178.9000005722046,"responseEnd":729.7000007629395,"responseStart":729.7000007629395,"secureConnectionStart":178.9000005722046},{"duration":564.7000007629395,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":179,"connectEnd":179,"connectStart":179,"domainLookupEnd":179,"domainLookupStart":179,"fetchStart":179,"redirectEnd":0,"redirectStart":0,"requestStart":179,"responseEnd":743.7000007629395,"responseStart":743.7000007629395,"secureConnectionStart":179},{"duration":271.6000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":458.5,"connectEnd":458.5,"connectStart":458.5,"domainLookupEnd":458.5,"domainLookupStart":458.5,"fetchStart":458.5,"redirectEnd":0,"redirectStart":0,"requestStart":458.5,"responseEnd":730.1000003814697,"responseStart":730.1000003814697,"secureConnectionStart":458.5},{"duration":190.89999961853027,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":772.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":772.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":963.5,"responseStart":0,"secureConnectionStart":0},{"duration":8.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":796.6000003814697,"connectEnd":796.6000003814697,"connectStart":796.6000003814697,"domainLookupEnd":796.6000003814697,"domainLookupStart":796.6000003814697,"fetchStart":796.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":796.6000003814697,"responseEnd":805.1000003814697,"responseStart":805.1000003814697,"secureConnectionStart":796.6000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":5,"responseStart":164,"responseEnd":168,"domLoading":173,"domInteractive":1003,"domContentLoadedEventStart":1003,"domContentLoadedEventEnd":1065,"domComplete":2049,"loadEventStart":2049,"loadEventEnd":2050,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":966.3000001907349},{"name":"bigPipe.sidebar-id.end","time":967.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":967.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":969.8000001907349},{"name":"activityTabFullyLoaded","time":1075.9000005722046}],"measures":[],"correlationId":"73d0fef9cc8299","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}