--source include/have_innodb.inc
|
|
CREATE TABLE t (a BLOB, b VARCHAR(2048), PRIMARY KEY (b)) ENGINE=InnoDB;
|
INSERT INTO t VALUES
|
(REPEAT('x',4805),'a'), (REPEAT('x',16111),'b'), (REPEAT('x',65535),'c'),
|
(REPEAT('x',11312),'d'), (REPEAT('x',35177),'e'), (REPEAT('x',65535),'f'),
|
(REPEAT('x',1988),'g'), (NULL,REPEAT('x',2048)), (REPEAT('x',2503),'h'),
|
(REPEAT('x',33152),'i'), (REPEAT('x',65535),'j'), (REPEAT('x',1988),'k'),
|
(REPEAT('x',65535),'l'), (REPEAT('x',65535),'m'), (REPEAT('x',65535),'n'),
|
(REPEAT('x',65535),'o'), (REPEAT('x',1988),'p'), (REPEAT('x',2503),'q'),
|
(REPEAT('x',65535),'r'), (REPEAT('x',65535),'s'), (REPEAT('x',65535),'t'),
|
(REPEAT('x',3169),'u'), (REPEAT('x',7071),'v'), (REPEAT('x',16111),'w'),
|
(REPEAT('x',2325),'x'), (REPEAT('x',33152),'y'), (REPEAT('x',65535),'z'),
|
(REPEAT('x',65535),'aa'), (REPEAT('x',16111),'bb'), (REPEAT('x',4805),'cc'),
|
(REPEAT('x',65535),'dd');
|
ALTER TABLE t FORCE, ALGORITHM=COPY;
|
|
# Cleanup
|
DROP TABLE t;
|
10.11 db59bb62aab8a904a7d46d70770ba9cabac3b1fe
|
mariadbd: /data/bld/10.11-asan/storage/innobase/rem/rem0cmp.cc:669: int cmp_rec_rec_simple_field(const rec_t*, const rec_t*, const rec_offs*, const rec_offs*, const dict_index_t*, ulint): Assertion `!rec_offs_nth_extern(offsets1, n)' failed.
|
241121 17:16:34 [ERROR] mysqld got signal 6 ;
|
|
#9 0x00007f4aca653e32 in __GI___assert_fail (assertion=0x5566705b51c0 "!rec_offs_nth_extern(offsets1, n)", file=0x5566705b4620 "/data/bld/10.11-asan/storage/innobase/rem/rem0cmp.cc", line=669, function=0x5566705b5220 "int cmp_rec_rec_simple_field(const rec_t*, const rec_t*, const rec_offs*, const rec_offs*, const dict_index_t*, ulint)") at ./assert/assert.c:101
|
#10 0x000055666ee1e2bf in cmp_rec_rec_simple_field (rec1=0x7f4ab9db1b5c "", rec2=0x7f4ab9eb0005 "z", offsets1=0x7f4ab9dae8a8, offsets2=0x6250003201a0, index=0x616000a9fc20, n=0) at /data/bld/10.11-asan/storage/innobase/rem/rem0cmp.cc:669
|
#11 0x000055666ee1e7ce in cmp_rec_rec_simple (rec1=0x7f4ab9db1b5c "", rec2=0x7f4ab9eb0005 "z", offsets1=0x7f4ab9dae8a8, offsets2=0x6250003201a0, index=0x616000a9fc20, table=0x0) at /data/bld/10.11-asan/storage/innobase/rem/rem0cmp.cc:707
|
#12 0x000055666eecced0 in row_merge_blocks (dup=0x7f4abb937b90, file=0x606000063698, block=0x7f4ab9db0000 "\005\024\300\001", foffs0=0x7f4abb9378b0, foffs1=0x7f4abb9378d0, of=0x7f4abb9378f0, stage=0x0, crypt_block=0x0, space=6) at /data/bld/10.11-asan/storage/innobase/row/row0merge.cc:3174
|
#13 0x000055666eecf36a in row_merge (trx=0x7f4ac26dc3c0, dup=0x7f4abb937b90, file=0x606000063698, block=0x7f4ab9db0000 "\005\024\300\001", tmpfd=0x60d0000101e8, num_run=0x7f4abb937a50, run_offset=0x60400002c7e8, stage=0x0, crypt_block=0x0, space=6) at /data/bld/10.11-asan/storage/innobase/row/row0merge.cc:3375
|
#14 0x000055666eed0437 in row_merge_sort (trx=0x7f4ac26dc3c0, dup=0x7f4abb937b90, file=0x606000063698, block=0x7f4ab9db0000 "\005\024\300\001", tmpfd=0x60d0000101e8, update_progress=true, pct_progress=0, pct_cost=0, crypt_block=0x0, space=6, stage=0x0) at /data/bld/10.11-asan/storage/innobase/row/row0merge.cc:3521
|
#15 0x000055666eedc8a9 in row_merge_bulk_t::write_to_index (this=0x60d0000101d0, index_no=0, trx=0x7f4ac26dc3c0) at /data/bld/10.11-asan/storage/innobase/row/row0merge.cc:5271
|
#16 0x000055666eedcd95 in row_merge_bulk_t::write_to_table (this=0x60d0000101d0, table=0x619000107820, trx=0x7f4ac26dc3c0) at /data/bld/10.11-asan/storage/innobase/row/row0merge.cc:5303
|
#17 0x000055666eedcfcf in trx_mod_table_time_t::write_bulk (this=0x608000029c60, table=0x619000107820, trx=0x7f4ac26dc3c0) at /data/bld/10.11-asan/storage/innobase/row/row0merge.cc:5325
|
#18 0x000055666eedd7cf in trx_t::bulk_insert_apply_low (this=0x7f4ac26dc3c0) at /data/bld/10.11-asan/storage/innobase/row/row0merge.cc:5354
|
#19 0x000055666eaadbe8 in trx_t::bulk_insert_apply (this=0x7f4ac26dc3c0) at /data/bld/10.11-asan/storage/innobase/include/trx0trx.h:1175
|
#20 0x000055666ea88883 in ha_innobase::extra (this=0x61d00032aab8, operation=HA_EXTRA_END_ALTER_COPY) at /data/bld/10.11-asan/storage/innobase/handler/ha_innodb.cc:15819
|
#21 0x000055666da5d6dc in copy_data_between_tables (thd=0x62c0001f0218, from=0x619000104f98, to=0x619000109598, ignore=false, order_num=0, order=0x0, copied=0x7f4abb939030, deleted=0x7f4abb939050, alter_info=0x7f4abb93bf70, alter_ctx=0x7f4abb93b0c0) at /data/bld/10.11-asan/sql/sql_table.cc:12219
|
#22 0x000055666da55f50 in mysql_alter_table (thd=0x62c0001f0218, new_db=0x62c0001f4fa8, new_name=0x62c0001f5410, create_info=0x7f4abb93c120, table_list=0x6290000fa368, recreate_info=0x7f4abb93beb0, alter_info=0x7f4abb93bf70, order_num=0, order=0x0, ignore=false, if_exists=false) at /data/bld/10.11-asan/sql/sql_table.cc:11372
|
#23 0x000055666dc1e4e9 in Sql_cmd_alter_table::execute (this=0x6290000faa98, thd=0x62c0001f0218) at /data/bld/10.11-asan/sql/sql_alter.cc:688
|
#24 0x000055666d759f47 in mysql_execute_command (thd=0x62c0001f0218, is_called_from_prepared_stmt=false) at /data/bld/10.11-asan/sql/sql_parse.cc:6153
|
#25 0x000055666d766cfe in mysql_parse (thd=0x62c0001f0218, rawbuf=0x6290000fa238 "ALTER TABLE t FORCE, ALGORITHM=COPY", length=35, parser_state=0x7f4abb93da80) at /data/bld/10.11-asan/sql/sql_parse.cc:8174
|
#26 0x000055666d73c466 in dispatch_command (command=COM_QUERY, thd=0x62c0001f0218, packet=0x629000271219 "", packet_length=35, blocking=true) at /data/bld/10.11-asan/sql/sql_parse.cc:1906
|
#27 0x000055666d739193 in do_command (thd=0x62c0001f0218, blocking=true) at /data/bld/10.11-asan/sql/sql_parse.cc:1419
|
#28 0x000055666dbff89b in do_handle_one_connection (connect=0x608000015238, put_in_cache=true) at /data/bld/10.11-asan/sql/sql_connect.cc:1407
|
#29 0x000055666dbff3fa in handle_one_connection (arg=0x6080000151b8) at /data/bld/10.11-asan/sql/sql_connect.cc:1319
|
#30 0x000055666e82acf0 in pfs_spawn_thread (arg=0x617000008218) at /data/bld/10.11-asan/storage/perfschema/pfs.cc:2201
|
#31 0x00007f4aca6a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#32 0x00007f4aca72861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
The failure started happening after this commit in 10.11.9:
commit cc8eefb0dca1372378905fbae11044f20364c42d
|
Author: Thirunarayanan Balathandayuthapani
|
Date: Tue Jul 30 11:59:01 2024 +0530
|
|
MDEV-33087 ALTER TABLE...ALGORITHM=COPY should build indexes more efficiently
|
{"report":{"fcp":665.3999998569489,"ttfb":171.59999990463257,"pageVisibility":"visible","entityId":131697,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f09f6af9-2414-4c89-83a5-0cb78b56aa7a","navigationType":0,"readyForUser":743.3999998569489,"redirectCount":0,"resourceLoadedEnd":673.0999999046326,"resourceLoadedStart":176.89999985694885,"resourceTiming":[{"duration":6.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":176.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":183.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":6.200000047683716,"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":177.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":183.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":71.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":177.39999985694885,"connectEnd":177.39999985694885,"connectStart":177.39999985694885,"domainLookupEnd":177.39999985694885,"domainLookupStart":177.39999985694885,"fetchStart":177.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":177.39999985694885,"responseEnd":248.89999985694885,"responseStart":248.89999985694885,"secureConnectionStart":177.39999985694885},{"duration":149.69999980926514,"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":177.5,"connectEnd":177.5,"connectStart":177.5,"domainLookupEnd":177.5,"domainLookupStart":177.5,"fetchStart":177.5,"redirectEnd":0,"redirectStart":0,"requestStart":177.5,"responseEnd":327.19999980926514,"responseStart":327.19999980926514,"secureConnectionStart":177.5},{"duration":153.59999990463257,"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":177.59999990463257,"connectEnd":177.59999990463257,"connectStart":177.59999990463257,"domainLookupEnd":177.59999990463257,"domainLookupStart":177.59999990463257,"fetchStart":177.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":177.59999990463257,"responseEnd":331.19999980926514,"responseStart":331.19999980926514,"secureConnectionStart":177.59999990463257},{"duration":154.10000014305115,"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":177.69999980926514,"connectEnd":177.69999980926514,"connectStart":177.69999980926514,"domainLookupEnd":177.69999980926514,"domainLookupStart":177.69999980926514,"fetchStart":177.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":177.69999980926514,"responseEnd":331.7999999523163,"responseStart":331.7999999523163,"secureConnectionStart":177.69999980926514},{"duration":156.79999995231628,"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":177.79999995231628,"connectEnd":177.79999995231628,"connectStart":177.79999995231628,"domainLookupEnd":177.79999995231628,"domainLookupStart":177.79999995231628,"fetchStart":177.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":177.79999995231628,"responseEnd":334.59999990463257,"responseStart":334.59999990463257,"secureConnectionStart":177.79999995231628},{"duration":157.29999995231628,"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":177.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":335.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":157.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":178,"connectEnd":178,"connectStart":178,"domainLookupEnd":178,"domainLookupStart":178,"fetchStart":178,"redirectEnd":0,"redirectStart":0,"requestStart":178,"responseEnd":335.19999980926514,"responseStart":335.19999980926514,"secureConnectionStart":178},{"duration":157.59999990463257,"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":178.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":178.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":335.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":157.70000004768372,"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":178.19999980926514,"connectEnd":178.19999980926514,"connectStart":178.19999980926514,"domainLookupEnd":178.19999980926514,"domainLookupStart":178.19999980926514,"fetchStart":178.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":178.19999980926514,"responseEnd":335.89999985694885,"responseStart":335.89999985694885,"secureConnectionStart":178.19999980926514},{"duration":479.30000019073486,"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":189.69999980926514,"connectEnd":189.69999980926514,"connectStart":189.69999980926514,"domainLookupEnd":189.69999980926514,"domainLookupStart":189.69999980926514,"fetchStart":189.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":189.69999980926514,"responseEnd":669,"responseStart":669,"secureConnectionStart":189.69999980926514},{"duration":481.90000009536743,"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":191.19999980926514,"connectEnd":191.19999980926514,"connectStart":191.19999980926514,"domainLookupEnd":191.19999980926514,"domainLookupStart":191.19999980926514,"fetchStart":191.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":191.19999980926514,"responseEnd":673.0999999046326,"responseStart":673.0999999046326,"secureConnectionStart":191.19999980926514},{"duration":186.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":466.2999999523163,"connectEnd":466.2999999523163,"connectStart":466.2999999523163,"domainLookupEnd":466.2999999523163,"domainLookupStart":466.2999999523163,"fetchStart":466.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":466.2999999523163,"responseEnd":653,"responseStart":652.8999998569489,"secureConnectionStart":466.2999999523163},{"duration":30.700000047683716,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":644.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":644.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":674.8999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":24,"responseStart":171,"responseEnd":191,"domLoading":175,"domInteractive":869,"domContentLoadedEventStart":869,"domContentLoadedEventEnd":914,"domComplete":2054,"loadEventStart":2054,"loadEventEnd":2056,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":849.1999998092651},{"name":"bigPipe.sidebar-id.end","time":850},{"name":"bigPipe.activity-panel-pipe-id.start","time":850.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":852.5999999046326},{"name":"activityTabFullyLoaded","time":927.5}],"measures":[],"correlationId":"b794f471cf7685","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":85,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}