After uploading MariaDB 1:11.8.1-2 to Debian I saw this test crashing on arch loong64:
main.partition_explicit_prune w14 [ fail ]
|
Test ended at 2025-03-21 04:35:53
|
|
CURRENT_TEST: main.partition_explicit_prune
|
mysqltest: At line 557: query 'TRUNCATE TABLE t2' failed: ER_LOCK_WAIT_TIMEOUT (1205): Lock wait timeout exceeded; try restarting transaction
|
|
The result from queries just before the failure was:
|
< snip >
|
HANDLER_ROLLBACK 1
|
HANDLER_TMP_WRITE 24
|
HANDLER_WRITE 1
|
# 16 locks (2 tables, 1 + 5 subpartitions lock/unlock)
|
FLUSH STATUS;
|
INSERT IGNORE INTO t2 PARTITION (subp3) SELECT * FROM t1 PARTITION (subp3, `p10-99`, `p100-99999`);
|
Warnings:
|
Warning 1748 Found a row not matching the given partition set
|
Warning 1748 Found a row not matching the given partition set
|
Warning 1748 Found a row not matching the given partition set
|
SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
|
WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
|
VARIABLE_NAME VARIABLE_VALUE
|
HANDLER_COMMIT 1
|
HANDLER_READ_FIRST 5
|
HANDLER_READ_NEXT 5
|
HANDLER_TMP_WRITE 24
|
HANDLER_WRITE 7
|
# 16 locks (2 tables, 1 + 5 subpartitions lock/unlock)
|
TRUNCATE TABLE t2;
|
|
More results from queries before failure can be found in /<<PKGBUILDDIR>>/builddir/mysql-test/var/14/log/partition_explicit_prune.log
|
Later down in the log I see the 3rd restart passed:
main.partition_explicit_prune w14 [ retry-pass ] 21544
|
Full log at https://buildd.debian.org/status/fetch.php?pkg=mariadb&arch=loong64&ver=1%3A11.8.1-2&stamp=1742531991&raw=0
In the previous build of 1:11.8.1-1 the test passed right away: https://buildd.debian.org/status/fetch.php?pkg=mariadb&arch=loong64&ver=1%3A11.8.1-1&stamp=1742370987&raw=0
Hence this issue seems sporadic.
I also found MDEV-34824 with failure on same test, but it has a mismatch in value and not a crash.
{"report":{"fcp":1149.1000001430511,"ttfb":365,"pageVisibility":"visible","entityId":133433,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6e71129a-d13a-4428-b108-181ae5225673","navigationType":0,"readyForUser":1222.2000000476837,"redirectCount":0,"resourceLoadedEnd":1269.7999999523163,"resourceLoadedStart":371.60000014305115,"resourceTiming":[{"duration":210.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":371.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":371.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":582.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":211,"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":371.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":371.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":582.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":275.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":372.10000014305115,"connectEnd":372.10000014305115,"connectStart":372.10000014305115,"domainLookupEnd":372.10000014305115,"domainLookupStart":372.10000014305115,"fetchStart":372.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":372.10000014305115,"responseEnd":647.6000001430511,"responseStart":647.5,"secureConnectionStart":372.10000014305115},{"duration":363.7000000476837,"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":372.2999999523163,"connectEnd":372.2999999523163,"connectStart":372.2999999523163,"domainLookupEnd":372.2999999523163,"domainLookupStart":372.2999999523163,"fetchStart":372.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":372.2999999523163,"responseEnd":736,"responseStart":736,"secureConnectionStart":372.2999999523163},{"duration":368,"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":372.60000014305115,"connectEnd":372.60000014305115,"connectStart":372.60000014305115,"domainLookupEnd":372.60000014305115,"domainLookupStart":372.60000014305115,"fetchStart":372.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":372.60000014305115,"responseEnd":740.6000001430511,"responseStart":740.5,"secureConnectionStart":372.60000014305115},{"duration":368.5,"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":372.7000000476837,"connectEnd":372.7000000476837,"connectStart":372.7000000476837,"domainLookupEnd":372.7000000476837,"domainLookupStart":372.7000000476837,"fetchStart":372.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":372.7000000476837,"responseEnd":741.2000000476837,"responseStart":741.2000000476837,"secureConnectionStart":372.7000000476837},{"duration":369.7999999523163,"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":372.90000009536743,"connectEnd":372.90000009536743,"connectStart":372.90000009536743,"domainLookupEnd":372.90000009536743,"domainLookupStart":372.90000009536743,"fetchStart":372.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":372.90000009536743,"responseEnd":742.7000000476837,"responseStart":742.7000000476837,"secureConnectionStart":372.90000009536743},{"duration":428.09999990463257,"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":373.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":801.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":371.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":373.2000000476837,"connectEnd":373.2000000476837,"connectStart":373.2000000476837,"domainLookupEnd":373.2000000476837,"domainLookupStart":373.2000000476837,"fetchStart":373.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":373.2000000476837,"responseEnd":744.6000001430511,"responseStart":744.6000001430511,"secureConnectionStart":373.2000000476837},{"duration":428,"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":373.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":801.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":371.90000009536743,"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":373.5,"connectEnd":373.5,"connectStart":373.5,"domainLookupEnd":373.5,"domainLookupStart":373.5,"fetchStart":373.5,"redirectEnd":0,"redirectStart":0,"requestStart":373.5,"responseEnd":745.4000000953674,"responseStart":745.4000000953674,"secureConnectionStart":373.5},{"duration":819.7000000476837,"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":374.5,"connectEnd":374.5,"connectStart":374.5,"domainLookupEnd":374.5,"domainLookupStart":374.5,"fetchStart":374.5,"redirectEnd":0,"redirectStart":0,"requestStart":374.5,"responseEnd":1194.2000000476837,"responseStart":1194.2000000476837,"secureConnectionStart":374.5},{"duration":820.5,"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":374.60000014305115,"connectEnd":374.60000014305115,"connectStart":374.60000014305115,"domainLookupEnd":374.60000014305115,"domainLookupStart":374.60000014305115,"fetchStart":374.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":374.60000014305115,"responseEnd":1195.1000001430511,"responseStart":1195.1000001430511,"secureConnectionStart":374.60000014305115},{"duration":272.60000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":827,"connectEnd":827,"connectStart":827,"domainLookupEnd":827,"domainLookupStart":827,"fetchStart":827,"redirectEnd":0,"redirectStart":0,"requestStart":827,"responseEnd":1099.6000001430511,"responseStart":1099.6000001430511,"secureConnectionStart":827},{"duration":193,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1127.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1127.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1320.5,"responseStart":0,"secureConnectionStart":0},{"duration":118.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-jira.view.issue,-jira.navigator.kickass,-viewissue.standalone,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1151.5,"connectEnd":1151.5,"connectStart":1151.5,"domainLookupEnd":1151.5,"domainLookupStart":1151.5,"fetchStart":1151.5,"redirectEnd":0,"redirectStart":0,"requestStart":1151.5,"responseEnd":1269.7999999523163,"responseStart":1269.7999999523163,"secureConnectionStart":1151.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":204,"responseStart":365,"responseEnd":367,"domLoading":369,"domInteractive":1373,"domContentLoadedEventStart":1373,"domContentLoadedEventEnd":1417,"domComplete":1565,"loadEventStart":1565,"loadEventEnd":1565,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1330.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1331},{"name":"bigPipe.activity-panel-pipe-id.start","time":1331.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1340.2000000476837},{"name":"activityTabFullyLoaded","time":1432.1000001430511}],"measures":[],"correlationId":"c99d8c7a231df0","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Is the timeout always the same TRUNCATE TABLE t2 on line 557? The x86_64 local test time is 95ms so a timeout is quite large.
Test case hasn't changed recently.
I'm assuming loong64 is a newly tested arch?
Some insight from those with native arch on the backtrace at the timeout corresponding to:
mysql-test/mtr --gdb='b get_server_errmsgs if nr == 1205;r;thread apply all bt -frame-arguments all full' main.partition_explicit_prune