CREATE TABLE t1 (a int, KEY idx1(a), KEY idx2 USING BTREE(a)) ENGINE=MEMORY;
|
ALTER TABLE t1 DROP KEY idx1, ADD KEY idx3(a);
|
DELETE FROM t1 WHERE a = 10;
|
|
# Cleanup
|
DROP TABLE t1;
|
10.5 559efad4
|
#3 <signal handler called>
|
#4 0x000055b715d5a979 in tree_record_pos (tree=0x7fdbec0f9090, key=0x7fdbec215d16, flag=HA_READ_KEY_EXACT, custom_arg=0x7fdbfd249020) at /data/src/10.5/mysys/tree.c:535
|
#5 0x000055b7158569f4 in hp_rb_records_in_range (info=0x7fdbec215a28, inx=0, min_key=0x7fdbfd2491f0, max_key=0x7fdbfd249210) at /data/src/10.5/storage/heap/hp_hash.c:76
|
#6 0x000055b715854b2b in ha_heap::records_in_range (this=0x7fdbec203210, inx=0, min_key=0x7fdbfd2491f0, max_key=0x7fdbfd249210, pages=0x7fdbfd2491c0) at /data/src/10.5/storage/heap/ha_heap.cc:584
|
#7 0x000055b715284690 in handler::multi_range_read_info_const (this=0x7fdbec203210, keyno=0, seq=0x7fdbfd2492e0, seq_init_param=0x7fdbfd249310, n_ranges_arg=0, bufsz=0x7fdbfd249898, flags=0x7fdbfd249894, cost=0x7fdbfd249980) at /data/src/10.5/sql/multi_range_read.cc:177
|
#8 0x000055b7155a27bd in check_quick_select (param=0x7fdbfd249c10, idx=0, index_only=false, tree=0x7fdbec233a88, update_tbl_stats=true, mrr_flags=0x7fdbfd249894, bufsize=0x7fdbfd249898, cost=0x7fdbfd249980, is_ror_scan=0x7fdbfd249892) at /data/src/10.5/sql/opt_range.cc:11558
|
#9 0x000055b71559802a in get_key_scans_params (param=0x7fdbfd249c10, tree=0x7fdbec2339f8, index_read_must_be_used=false, for_range_access=true, read_time=12.5) at /data/src/10.5/sql/opt_range.cc:7462
|
#10 0x000055b71558c962 in SQL_SELECT::test_quick_select (this=0x7fdbec0160b8, thd=0x7fdbec000db8, keys_to_use=..., prev_tables=0, limit=18446744073709551615, force_quick_range=false, ordered_output=false, remove_false_parts_of_where=false, only_single_index_range_scan=false) at /data/src/10.5/sql/opt_range.cc:2931
|
#11 0x000055b7151b14fc in SQL_SELECT::check_quick (this=0x7fdbec0160b8, thd=0x7fdbec000db8, force_quick_range=false, limit=18446744073709551615) at /data/src/10.5/sql/opt_range.h:1718
|
#12 0x000055b7155da603 in mysql_delete (thd=0x7fdbec000db8, table_list=0x7fdbec0153d0, conds=0x7fdbec015c90, order_list=0x7fdbec005a08, limit=18446744073709551615, options=0, result=0x0) at /data/src/10.5/sql/sql_delete.cc:511
|
#13 0x000055b715080cd7 in mysql_execute_command (thd=0x7fdbec000db8) at /data/src/10.5/sql/sql_parse.cc:4870
|
#14 0x000055b71508b790 in mysql_parse (thd=0x7fdbec000db8, rawbuf=0x7fdbec0152f0 "DELETE FROM t1 WHERE a = 10", length=27, parser_state=0x7fdbfd24b490, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:8099
|
#15 0x000055b71507770b in dispatch_command (command=COM_QUERY, thd=0x7fdbec000db8, packet=0x7fdbec00b5a9 "DELETE FROM t1 WHERE a = 10", packet_length=27, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1891
|
#16 0x000055b715075efd in do_command (thd=0x7fdbec000db8) at /data/src/10.5/sql/sql_parse.cc:1370
|
#17 0x000055b71522573b in do_handle_one_connection (connect=0x55b718098fa8, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1410
|
#18 0x000055b71522549e in handle_one_connection (arg=0x55b717f9fc18) at /data/src/10.5/sql/sql_connect.cc:1312
|
#19 0x000055b7157898ed in pfs_spawn_thread (arg=0x55b718098978) at /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#20 0x00007fdc02ef5609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#21 0x00007fdc02ac9293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Reproducible on 10.5-10.6, debug- and release alike.
Not reproducible on 10.4 and previous versions, apparently because it doesn't do it inplace, and doesn't accept explicit ALGORITHM=INPLACE for this operation.
Not reproducible with MyISAM (at least with otherwise the same test case).
Not reproducible with ALTER .. ALGORITHM=COPY.
The failure appeared in 10.5 after this commit:
commit 193725b81ed813d0318c1fa82de284c337246d9e
|
Author: Aleksey Midenkov
|
Date: Tue Mar 3 13:50:33 2020 +0300
|
|
MDEV-7318 RENAME INDEX
|
(but not reproducible with RENAME INDEX instead of DROP / ADD).
{"report":{"fcp":1375.5,"ttfb":470.5,"pageVisibility":"visible","entityId":99296,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"28eac21f-1da5-4907-beb9-af5f05f73206","navigationType":0,"readyForUser":1487.8999998569489,"redirectCount":0,"resourceLoadedEnd":1537.8999998569489,"resourceLoadedStart":532.5999999046326,"resourceTiming":[{"duration":171,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":532.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":532.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":703.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":171.60000014305115,"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":532.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":532.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":704.5,"responseStart":0,"secureConnectionStart":0},{"duration":234.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":533.0999999046326,"connectEnd":533.0999999046326,"connectStart":533.0999999046326,"domainLookupEnd":533.0999999046326,"domainLookupStart":533.0999999046326,"fetchStart":533.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":533.0999999046326,"responseEnd":767.7000000476837,"responseStart":767.7000000476837,"secureConnectionStart":533.0999999046326},{"duration":355.60000014305115,"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":533.3999998569489,"connectEnd":533.3999998569489,"connectStart":533.3999998569489,"domainLookupEnd":533.3999998569489,"domainLookupStart":533.3999998569489,"fetchStart":533.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":533.3999998569489,"responseEnd":889,"responseStart":889,"secureConnectionStart":533.3999998569489},{"duration":359.7999999523163,"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":533.7000000476837,"connectEnd":533.7000000476837,"connectStart":533.7000000476837,"domainLookupEnd":533.7000000476837,"domainLookupStart":533.7000000476837,"fetchStart":533.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":533.7000000476837,"responseEnd":893.5,"responseStart":893.5,"secureConnectionStart":533.7000000476837},{"duration":360,"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":534.2000000476837,"connectEnd":534.2000000476837,"connectStart":534.2000000476837,"domainLookupEnd":534.2000000476837,"domainLookupStart":534.2000000476837,"fetchStart":534.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":534.2000000476837,"responseEnd":894.2000000476837,"responseStart":894.2000000476837,"secureConnectionStart":534.2000000476837},{"duration":361,"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":534.3999998569489,"connectEnd":534.3999998569489,"connectStart":534.3999998569489,"domainLookupEnd":534.3999998569489,"domainLookupStart":534.3999998569489,"fetchStart":534.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":534.3999998569489,"responseEnd":895.3999998569489,"responseStart":895.2999999523163,"secureConnectionStart":534.3999998569489},{"duration":398.39999985694885,"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":534.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":534.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":933.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":362,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":534.7999999523163,"connectEnd":534.7999999523163,"connectStart":534.7999999523163,"domainLookupEnd":534.7999999523163,"domainLookupStart":534.7999999523163,"fetchStart":534.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":534.7999999523163,"responseEnd":896.7999999523163,"responseStart":896.7999999523163,"secureConnectionStart":534.7999999523163},{"duration":398.5,"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":535,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":535,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":933.5,"responseStart":0,"secureConnectionStart":0},{"duration":363,"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":535.2000000476837,"connectEnd":535.2000000476837,"connectStart":535.2000000476837,"domainLookupEnd":535.2000000476837,"domainLookupStart":535.2000000476837,"fetchStart":535.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":535.2000000476837,"responseEnd":898.2000000476837,"responseStart":898.2000000476837,"secureConnectionStart":535.2000000476837},{"duration":652.2999999523163,"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":536.2999999523163,"connectEnd":536.2999999523163,"connectStart":536.2999999523163,"domainLookupEnd":536.2999999523163,"domainLookupStart":536.2999999523163,"fetchStart":536.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":536.2999999523163,"responseEnd":1188.5999999046326,"responseStart":1188.5999999046326,"secureConnectionStart":536.2999999523163},{"duration":884.2000000476837,"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":536.3999998569489,"connectEnd":536.3999998569489,"connectStart":536.3999998569489,"domainLookupEnd":536.3999998569489,"domainLookupStart":536.3999998569489,"fetchStart":536.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":536.3999998569489,"responseEnd":1420.5999999046326,"responseStart":1420.5999999046326,"secureConnectionStart":536.3999998569489},{"duration":355.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":977.8999998569489,"connectEnd":977.8999998569489,"connectStart":977.8999998569489,"domainLookupEnd":977.8999998569489,"domainLookupStart":977.8999998569489,"fetchStart":977.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":977.8999998569489,"responseEnd":1333,"responseStart":1333,"secureConnectionStart":977.8999998569489},{"duration":231.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1353.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1353.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1585.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":155.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1382.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1382.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1537.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":114.19999980926514,"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":1383.2000000476837,"connectEnd":1383.2000000476837,"connectStart":1383.2000000476837,"domainLookupEnd":1383.2000000476837,"domainLookupStart":1383.2000000476837,"fetchStart":1383.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1383.2000000476837,"responseEnd":1497.3999998569489,"responseStart":1497.3999998569489,"secureConnectionStart":1383.2000000476837},{"duration":122.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1383.7999999523163,"connectEnd":1383.7999999523163,"connectStart":1383.7999999523163,"domainLookupEnd":1383.7999999523163,"domainLookupStart":1383.7999999523163,"fetchStart":1383.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1383.7999999523163,"responseEnd":1506.5,"responseStart":1506.3999998569489,"secureConnectionStart":1383.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":315,"responseStart":470,"responseEnd":501,"domLoading":503,"domInteractive":1620,"domContentLoadedEventStart":1620,"domContentLoadedEventEnd":1672,"domComplete":2951,"loadEventStart":2951,"loadEventEnd":2953,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1602.8999998569489},{"name":"bigPipe.sidebar-id.end","time":1603.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1603.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1607.2999999523163},{"name":"activityTabFullyLoaded","time":1685.2999999523163}],"measures":[],"correlationId":"159e2f12c4e881","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}