CREATE TABLE t1 (a INT);
|
INSERT INTO t1 VALUES (1),(2);
|
CREATE TABLE t2 (b INT);
|
INSERT INTO t2 VALUES (3),(4);
|
|
PREPARE stmt FROM 'UPDATE t1 SET a = NULL WHERE a IN (WITH cte AS (SELECT b FROM t2) SELECT * FROM cte)';
|
EXECUTE stmt;
|
EXECUTE stmt;
|
|
# Cleanup
|
DROP TABLE t1, t2;
|
11.1 3ef11161
|
#3 <signal handler called>
|
#4 0x0000560d79a10c8a in multi_update_check_table_access (thd=0x62b00007e218, table=0x62d00019eb58, tables_for_update=1, updated_arg=0x7f1dafb56b40) at /data/src/11.1/sql/sql_update.cc:1499
|
#5 0x0000560d79a11f89 in Multiupdate_prelocking_strategy::handle_end (this=0x62d00019cbc0, thd=0x62b00007e218) at /data/src/11.1/sql/sql_update.cc:1653
|
#6 0x0000560d794edf0d in open_tables (thd=0x62b00007e218, options=..., start=0x7f1dafb56ec0, counter=0x62d00019cba0, flags=0, prelocking_strategy=0x62d00019cbc0) at /data/src/11.1/sql/sql_base.cc:4741
|
#7 0x0000560d794d4830 in open_tables (thd=0x62b00007e218, tables=0x7f1dafb56ec0, counter=0x62d00019cba0, flags=0, prelocking_strategy=0x62d00019cbc0) at /data/src/11.1/sql/sql_base.h:267
|
#8 0x0000560d794f3650 in open_tables_for_query (thd=0x62b00007e218, tables=0x62d00019c250, table_count=0x62d00019cba0, flags=0, prelocking_strategy=0x62d00019cbc0) at /data/src/11.1/sql/sql_base.cc:5740
|
#9 0x0000560d79870e47 in Sql_cmd_dml::prepare (this=0x62d00019cb88, thd=0x62b00007e218) at /data/src/11.1/sql/sql_select.cc:32458
|
#10 0x0000560d798711a4 in Sql_cmd_dml::execute (this=0x62d00019cb88, thd=0x62b00007e218) at /data/src/11.1/sql/sql_select.cc:32520
|
#11 0x0000560d79699ead in mysql_execute_command (thd=0x62b00007e218, is_called_from_prepared_stmt=true) at /data/src/11.1/sql/sql_parse.cc:4393
|
#12 0x0000560d79741a52 in Prepared_statement::execute (this=0x61900009f698, expanded_query=0x7f1dafb57c40, open_cursor=false) at /data/src/11.1/sql/sql_prepare.cc:4992
|
#13 0x0000560d7973cce9 in Prepared_statement::execute_loop (this=0x61900009f698, expanded_query=0x7f1dafb57c40, open_cursor=false, packet=0x0, packet_end=0x0) at /data/src/11.1/sql/sql_prepare.cc:4415
|
#14 0x0000560d797364b4 in mysql_sql_stmt_execute (thd=0x62b00007e218) at /data/src/11.1/sql/sql_prepare.cc:3456
|
#15 0x0000560d79697508 in mysql_execute_command (thd=0x62b00007e218, is_called_from_prepared_stmt=false) at /data/src/11.1/sql/sql_parse.cc:3960
|
#16 0x0000560d796b133a in mysql_parse (thd=0x62b00007e218, rawbuf=0x6290000e6238 "EXECUTE stmt", length=12, parser_state=0x7f1dafb58a20) at /data/src/11.1/sql/sql_parse.cc:7760
|
#17 0x0000560d79689ab1 in dispatch_command (command=COM_QUERY, thd=0x62b00007e218, packet=0x629000258219 "EXECUTE stmt", packet_length=12, blocking=true) at /data/src/11.1/sql/sql_parse.cc:1892
|
#18 0x0000560d796867ef in do_command (thd=0x62b00007e218, blocking=true) at /data/src/11.1/sql/sql_parse.cc:1405
|
#19 0x0000560d79b3e6e2 in do_handle_one_connection (connect=0x608000002eb8, put_in_cache=true) at /data/src/11.1/sql/sql_connect.cc:1416
|
#20 0x0000560d79b3e0a3 in handle_one_connection (arg=0x608000002e38) at /data/src/11.1/sql/sql_connect.cc:1318
|
#21 0x0000560d7a737870 in pfs_spawn_thread (arg=0x617000005b98) at /data/src/11.1/storage/perfschema/pfs.cc:2201
|
#22 0x00007f1db72a7fd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#23 0x00007f1db73285bc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
Reproducible with InnoDB, MyISAM, Aria.
The failure in its current form appeared after this commit
commit 554278e24dbc2c0af9fcfd66c54ca6a99a3cf17f
|
Author: Igor Babaev
|
Date: Mon Jan 9 22:39:39 2023 -0800
|
|
MDEV-7487 Semi-join optimization for single-table update/delete statements
|
However, there were several commits before this one which were either not building or otherwise breaking, so it's hard to say when exactly the test started failing, but definitely somewhere between the commit above and 3a9358a4106a (MDEV-28883 Re-design the upper level), inclusive.
{"report":{"fcp":1075.2000000476837,"ttfb":396,"pageVisibility":"visible","entityId":121458,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"fa878a82-45f7-42fb-86b1-920e5e119366","navigationType":0,"readyForUser":1162.9000000953674,"redirectCount":0,"resourceLoadedEnd":1318,"resourceLoadedStart":401.7000000476837,"resourceTiming":[{"duration":130.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":401.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":401.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":531.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":131.09999990463257,"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":401.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":401.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":533,"responseStart":0,"secureConnectionStart":0},{"duration":194.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":402.10000014305115,"connectEnd":402.10000014305115,"connectStart":402.10000014305115,"domainLookupEnd":402.10000014305115,"domainLookupStart":402.10000014305115,"fetchStart":402.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":402.10000014305115,"responseEnd":596.5,"responseStart":596.5,"secureConnectionStart":402.10000014305115},{"duration":271.10000014305115,"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":402.2999999523163,"connectEnd":402.2999999523163,"connectStart":402.2999999523163,"domainLookupEnd":402.2999999523163,"domainLookupStart":402.2999999523163,"fetchStart":402.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":402.2999999523163,"responseEnd":673.4000000953674,"responseStart":673.4000000953674,"secureConnectionStart":402.2999999523163},{"duration":274.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":402.60000014305115,"connectEnd":402.60000014305115,"connectStart":402.60000014305115,"domainLookupEnd":402.60000014305115,"domainLookupStart":402.60000014305115,"fetchStart":402.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":402.60000014305115,"responseEnd":677.4000000953674,"responseStart":677.4000000953674,"secureConnectionStart":402.60000014305115},{"duration":275.10000014305115,"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":402.7999999523163,"connectEnd":402.7999999523163,"connectStart":402.7999999523163,"domainLookupEnd":402.7999999523163,"domainLookupStart":402.7999999523163,"fetchStart":402.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":402.7999999523163,"responseEnd":677.9000000953674,"responseStart":677.9000000953674,"secureConnectionStart":402.7999999523163},{"duration":275.2999999523163,"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":403,"connectEnd":403,"connectStart":403,"domainLookupEnd":403,"domainLookupStart":403,"fetchStart":403,"redirectEnd":0,"redirectStart":0,"requestStart":403,"responseEnd":678.2999999523163,"responseStart":678.2999999523163,"secureConnectionStart":403},{"duration":344,"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":403.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":403.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":747.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":275.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":403.2999999523163,"connectEnd":403.2999999523163,"connectStart":403.2999999523163,"domainLookupEnd":403.2999999523163,"domainLookupStart":403.2999999523163,"fetchStart":403.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":403.2999999523163,"responseEnd":678.7000000476837,"responseStart":678.7000000476837,"secureConnectionStart":403.2999999523163},{"duration":343.90000009536743,"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":403.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":403.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":747.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":275.69999980926514,"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":403.60000014305115,"connectEnd":403.60000014305115,"connectStart":403.60000014305115,"domainLookupEnd":403.60000014305115,"domainLookupStart":403.60000014305115,"fetchStart":403.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":403.60000014305115,"responseEnd":679.2999999523163,"responseStart":679.2999999523163,"secureConnectionStart":403.60000014305115},{"duration":605.9000000953674,"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":404.5,"connectEnd":404.5,"connectStart":404.5,"domainLookupEnd":404.5,"domainLookupStart":404.5,"fetchStart":404.5,"redirectEnd":0,"redirectStart":0,"requestStart":404.5,"responseEnd":1010.4000000953674,"responseStart":1010.4000000953674,"secureConnectionStart":404.5},{"duration":898.7999999523163,"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":404.60000014305115,"connectEnd":404.60000014305115,"connectStart":404.60000014305115,"domainLookupEnd":404.60000014305115,"domainLookupStart":404.60000014305115,"fetchStart":404.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":404.60000014305115,"responseEnd":1303.4000000953674,"responseStart":1303.4000000953674,"secureConnectionStart":404.60000014305115},{"duration":253.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":759.5,"connectEnd":759.5,"connectStart":759.5,"domainLookupEnd":759.5,"domainLookupStart":759.5,"fetchStart":759.5,"redirectEnd":0,"redirectStart":0,"requestStart":759.5,"responseEnd":1012.7999999523163,"responseStart":1012.7999999523163,"secureConnectionStart":759.5},{"duration":291.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":1026.1000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1026.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1317.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":291.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1026.6000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1026.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1318,"responseStart":0,"secureConnectionStart":0},{"duration":281.09999990463257,"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":1027.6000001430511,"connectEnd":1027.6000001430511,"connectStart":1027.6000001430511,"domainLookupEnd":1027.6000001430511,"domainLookupStart":1027.6000001430511,"fetchStart":1027.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":1027.6000001430511,"responseEnd":1308.7000000476837,"responseStart":1308.7000000476837,"secureConnectionStart":1027.6000001430511},{"duration":287.89999985694885,"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":1027.9000000953674,"connectEnd":1027.9000000953674,"connectStart":1027.9000000953674,"domainLookupEnd":1027.9000000953674,"domainLookupStart":1027.9000000953674,"fetchStart":1027.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1027.9000000953674,"responseEnd":1315.7999999523163,"responseStart":1315.7999999523163,"secureConnectionStart":1027.9000000953674},{"duration":288.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1028.2999999523163,"connectEnd":1028.2999999523163,"connectStart":1028.2999999523163,"domainLookupEnd":1028.2999999523163,"domainLookupStart":1028.2999999523163,"fetchStart":1028.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1028.2999999523163,"responseEnd":1317.1000001430511,"responseStart":1317.1000001430511,"secureConnectionStart":1028.2999999523163},{"duration":256,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1068.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1068.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1324.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":241,"responseStart":396,"responseEnd":398,"domLoading":399,"domInteractive":1328,"domContentLoadedEventStart":1328,"domContentLoadedEventEnd":1370,"domComplete":2256,"loadEventStart":2256,"loadEventEnd":2258,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1305.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1306},{"name":"bigPipe.activity-panel-pipe-id.start","time":1306.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1308.7999999523163},{"name":"activityTabFullyLoaded","time":1415.5}],"measures":[],"correlationId":"8690bdcb294d9f","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}