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":770.8000001907349,"ttfb":213.10000038146973,"pageVisibility":"visible","entityId":133433,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"4049ca28-401a-44bf-b87b-4ddba313a569","navigationType":0,"readyForUser":831.7000002861023,"redirectCount":0,"resourceLoadedEnd":331.30000019073486,"resourceLoadedStart":218.30000019073486,"resourceTiming":[{"duration":6,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":218.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":218.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":224.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":6.099999904632568,"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":218.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":218.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":224.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":93,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":218.80000019073486,"connectEnd":218.80000019073486,"connectStart":218.80000019073486,"domainLookupEnd":218.80000019073486,"domainLookupStart":218.80000019073486,"fetchStart":218.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":228.30000019073486,"responseEnd":311.80000019073486,"responseStart":262.5,"secureConnectionStart":218.80000019073486},{"duration":112.40000009536743,"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":218.90000009536743,"connectEnd":218.90000009536743,"connectStart":218.90000009536743,"domainLookupEnd":218.90000009536743,"domainLookupStart":218.90000009536743,"fetchStart":218.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":229,"responseEnd":331.30000019073486,"responseStart":265.2000002861023,"secureConnectionStart":218.90000009536743},{"duration":48.299999713897705,"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":219.2000002861023,"connectEnd":219.2000002861023,"connectStart":219.2000002861023,"domainLookupEnd":219.2000002861023,"domainLookupStart":219.2000002861023,"fetchStart":219.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":230.40000009536743,"responseEnd":267.5,"responseStart":266.80000019073486,"secureConnectionStart":219.2000002861023},{"duration":66.69999980926514,"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":219.30000019073486,"connectEnd":219.30000019073486,"connectStart":219.30000019073486,"domainLookupEnd":219.30000019073486,"domainLookupStart":219.30000019073486,"fetchStart":219.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":231.80000019073486,"responseEnd":286,"responseStart":285.2000002861023,"secureConnectionStart":219.30000019073486},{"duration":71.5,"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":219.5,"connectEnd":219.5,"connectStart":219.5,"domainLookupEnd":219.5,"domainLookupStart":219.5,"fetchStart":219.5,"redirectEnd":0,"redirectStart":0,"requestStart":234.5,"responseEnd":291,"responseStart":290.40000009536743,"secureConnectionStart":219.5},{"duration":12.399999618530273,"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":219.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":219.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":232,"responseStart":0,"secureConnectionStart":0},{"duration":71.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":219.90000009536743,"connectEnd":219.90000009536743,"connectStart":219.90000009536743,"domainLookupEnd":219.90000009536743,"domainLookupStart":219.90000009536743,"fetchStart":219.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":236.80000019073486,"responseEnd":291.7000002861023,"responseStart":291.1000003814697,"secureConnectionStart":219.90000009536743},{"duration":14.900000095367432,"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":220,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":234.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":74.59999990463257,"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":220.2000002861023,"connectEnd":220.2000002861023,"connectStart":220.2000002861023,"domainLookupEnd":220.2000002861023,"domainLookupStart":220.2000002861023,"fetchStart":220.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":236.80000019073486,"responseEnd":294.80000019073486,"responseStart":291.90000009536743,"secureConnectionStart":220.2000002861023},{"duration":30.800000190734863,"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":230.40000009536743,"connectEnd":244.60000038146973,"connectStart":244.60000038146973,"domainLookupEnd":244.60000038146973,"domainLookupStart":244.60000038146973,"fetchStart":230.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":246,"responseEnd":261.2000002861023,"responseStart":258.1000003814697,"secureConnectionStart":244.60000038146973},{"duration":27.699999809265137,"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":234.10000038146973,"connectEnd":234.10000038146973,"connectStart":234.10000038146973,"domainLookupEnd":234.10000038146973,"domainLookupStart":234.10000038146973,"fetchStart":234.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":246.80000019073486,"responseEnd":261.80000019073486,"responseStart":259.40000009536743,"secureConnectionStart":234.10000038146973},{"duration":176,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":526.1000003814697,"connectEnd":526.1000003814697,"connectStart":526.1000003814697,"domainLookupEnd":526.1000003814697,"domainLookupStart":526.1000003814697,"fetchStart":526.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":662.1000003814697,"responseEnd":702.1000003814697,"responseStart":701.3000001907349,"secureConnectionStart":526.1000003814697},{"duration":123,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":744.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":744.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":867.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":64.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":761.4000000953674,"connectEnd":761.4000000953674,"connectStart":761.4000000953674,"domainLookupEnd":761.4000000953674,"domainLookupStart":761.4000000953674,"fetchStart":761.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":789.9000000953674,"responseEnd":825.5,"responseStart":824.8000001907349,"secureConnectionStart":761.4000000953674}],"fetchStart":0,"domainLookupStart":20,"domainLookupEnd":28,"connectStart":28,"connectEnd":48,"secureConnectionStart":37,"requestStart":48,"responseStart":213,"responseEnd":234,"domLoading":217,"domInteractive":897,"domContentLoadedEventStart":898,"domContentLoadedEventEnd":941,"domComplete":1061,"loadEventStart":1061,"loadEventEnd":1062,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":873.1000003814697},{"name":"bigPipe.sidebar-id.end","time":873.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":874.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":875.6000003814697},{"name":"activityTabFullyLoaded","time":960}],"measures":[],"correlationId":"c2c96ad57c2fa2","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"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