E.g. https://buildbot.mariadb.net/buildbot/builders/kvm-asan/builds/10208/steps/mtr_nm/logs/stdio
I am not sure why this happens and I cannot reproduce it at the same commit. Here is the complete test:
--echo #
|
--echo # MDEV-29904 SPIDER plugin initialization fails upon startup
|
--echo #
|
|
--let $restart_parameters=--plugin-load-add=ha_spider
|
--source include/restart_mysqld.inc
|
According to [1] the error message means some query is still running while the server is shutting down. Maybe mtr tries to shutdown the server after --source include/restart_mysqld.inc while the spider init queries are still running in another thread? In that case perhaps we need to introduce a wait at the end of the test
[1] https://www.percona.com/blog/error-mysqld-sort-aborted-server-shutdown-in-progress/
To add a wait condition perhaps we could use include/wait_condition.inc, but that would require a sql statement to determine the completion, but looking at at spd_init_query.h, I don't see which statement can achieve this, so maybe we'll need to add an init query that signals completion.
On the other hand, if spider init queries are no longer running in a background thread, then this bug may be fixed automatically, so let's block this ticket with the init bug ticket MDEV-22979 where we are considering such change.
{"report":{"fcp":695.1999998092651,"ttfb":165.5,"pageVisibility":"visible","entityId":121277,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"6c800c30-84e3-495e-93ec-d0315c420ef6","navigationType":0,"readyForUser":766.6999998092651,"redirectCount":0,"resourceLoadedEnd":757.0999994277954,"resourceLoadedStart":170.79999923706055,"resourceTiming":[{"duration":7.40000057220459,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":170.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":178.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":7.40000057220459,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":171.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":171.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":178.5,"responseStart":0,"secureConnectionStart":0},{"duration":69.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":171.29999923706055,"connectEnd":171.29999923706055,"connectStart":171.29999923706055,"domainLookupEnd":171.29999923706055,"domainLookupStart":171.29999923706055,"fetchStart":171.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":171.29999923706055,"responseEnd":240.89999961853027,"responseStart":240.79999923706055,"secureConnectionStart":171.29999923706055},{"duration":174.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":171.5,"connectEnd":171.5,"connectStart":171.5,"domainLookupEnd":171.5,"domainLookupStart":171.5,"fetchStart":171.5,"redirectEnd":0,"redirectStart":0,"requestStart":171.5,"responseEnd":346,"responseStart":346,"secureConnectionStart":171.5},{"duration":178.30000019073486,"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":171.5999994277954,"connectEnd":171.5999994277954,"connectStart":171.5999994277954,"domainLookupEnd":171.5999994277954,"domainLookupStart":171.5999994277954,"fetchStart":171.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":171.5999994277954,"responseEnd":349.8999996185303,"responseStart":349.8999996185303,"secureConnectionStart":171.5999994277954},{"duration":178.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":171.79999923706055,"connectEnd":171.79999923706055,"connectStart":171.79999923706055,"domainLookupEnd":171.79999923706055,"domainLookupStart":171.79999923706055,"fetchStart":171.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":171.79999923706055,"responseEnd":350.29999923706055,"responseStart":350.29999923706055,"secureConnectionStart":171.79999923706055},{"duration":178.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":172.0999994277954,"connectEnd":172.0999994277954,"connectStart":172.0999994277954,"domainLookupEnd":172.0999994277954,"domainLookupStart":172.0999994277954,"fetchStart":172.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":172.0999994277954,"responseEnd":350.5999994277954,"responseStart":350.5999994277954,"secureConnectionStart":172.0999994277954},{"duration":212.10000038146973,"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":172.29999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":384.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":178.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":172.39999961853027,"connectEnd":172.39999961853027,"connectStart":172.39999961853027,"domainLookupEnd":172.39999961853027,"domainLookupStart":172.39999961853027,"fetchStart":172.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":172.39999961853027,"responseEnd":351.19999980926514,"responseStart":351.19999980926514,"secureConnectionStart":172.39999961853027},{"duration":212,"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":172.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":384.5,"responseStart":0,"secureConnectionStart":0},{"duration":179.0999994277954,"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":172.69999980926514,"connectEnd":172.69999980926514,"connectStart":172.69999980926514,"domainLookupEnd":172.69999980926514,"domainLookupStart":172.69999980926514,"fetchStart":172.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":172.69999980926514,"responseEnd":351.79999923706055,"responseStart":351.79999923706055,"secureConnectionStart":172.69999980926514},{"duration":250,"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":178,"connectEnd":178,"connectStart":178,"domainLookupEnd":178,"domainLookupStart":178,"fetchStart":178,"redirectEnd":0,"redirectStart":0,"requestStart":178,"responseEnd":428,"responseStart":428,"secureConnectionStart":178},{"duration":579.0999994277954,"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":178,"connectEnd":178,"connectStart":178,"domainLookupEnd":178,"domainLookupStart":178,"fetchStart":178,"redirectEnd":0,"redirectStart":0,"requestStart":178,"responseEnd":757.0999994277954,"responseStart":757.0999994277954,"secureConnectionStart":178},{"duration":32,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":396.79999923706055,"connectEnd":396.79999923706055,"connectStart":396.79999923706055,"domainLookupEnd":396.79999923706055,"domainLookupStart":396.79999923706055,"fetchStart":396.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":396.79999923706055,"responseEnd":428.79999923706055,"responseStart":428.79999923706055,"secureConnectionStart":396.79999923706055}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":165,"responseEnd":172,"domLoading":169,"domInteractive":816,"domContentLoadedEventStart":816,"domContentLoadedEventEnd":855,"domComplete":1491,"loadEventStart":1491,"loadEventEnd":1492,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":804.7999992370605},{"name":"bigPipe.sidebar-id.end","time":805.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":805.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":808.0999994277954},{"name":"activityTabFullyLoaded","time":865.1999998092651}],"measures":[],"correlationId":"ca2ef4b6532512","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}