I have discovered an issue which causes the server to crash and restart, when it is trying to calculate (or after it has calculated) a virtual column. I have been able to reliably reproduce this with the table structure below, if I insert a record, update a record (regardless of if the update affects the field the virtual column is calculated on or not) or delete a record, then the next time I do a select that includes one of the virtual columns (including select *), MariaDB will crash. The reason I am listing this with the summary saying "non-cached" and I earlier said that it crashes after calculating the virtual column is that once the server has restarted, if you rerun the select, it works fine - with the correct calculated column.
The table in question is called 'supplierSendingTimes'. There are two virtual columns, looking at a JSON string to select from it two times (a start time and an end time) - with the column definitions varying only in that they select the key "start" or "end". The column definition is (the full table def is in bugReportDump.sql:
`currentStartTime` time GENERATED ALWAYS AS (coalesce(cast(json_value(json_extract(`jsonRuleString`,concat('$.singleDates."',curdate(),'"')),'$.start') as time),cast(json_value(json_extract(`jsonRuleString`,concat('$.singleDay."',dayname(curdate()),'"')),'$.start') as time),cast(json_value(json_extract(`jsonRuleString`,'$.default'),'$.start') as time))) VIRTUAL,
|
The stack trace appears to be different, depending on if you are inserting or updating; and if updating, if you are doing a select * or select <columns>. I haven't check the error logs, but it might also be different on delete, if it would be useful for me to check, please let me know.
Hopefully this is enough information, but if I can provide further information, please let me know.
{"report":{"fcp":995,"ttfb":176,"pageVisibility":"visible","entityId":62488,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b1682ad2-d64f-42a2-8de3-b1cfbf18b5dd","navigationType":0,"readyForUser":1078,"redirectCount":0,"resourceLoadedEnd":1788.4000000357628,"resourceLoadedStart":181.30000001192093,"resourceTiming":[{"duration":339.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":181.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":181.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":520.8000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":339.7000000476837,"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":181.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":181.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":521.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":348.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":181.80000001192093,"connectEnd":181.80000001192093,"connectStart":181.80000001192093,"domainLookupEnd":181.80000001192093,"domainLookupStart":181.80000001192093,"fetchStart":181.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":181.80000001192093,"responseEnd":530.3000000119209,"responseStart":530.3000000119209,"secureConnectionStart":181.80000001192093},{"duration":421.30000001192093,"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":181.9000000357628,"connectEnd":181.9000000357628,"connectStart":181.9000000357628,"domainLookupEnd":181.9000000357628,"domainLookupStart":181.9000000357628,"fetchStart":181.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":181.9000000357628,"responseEnd":603.2000000476837,"responseStart":603.2000000476837,"secureConnectionStart":181.9000000357628},{"duration":424.80000001192093,"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":182.10000002384186,"connectEnd":182.10000002384186,"connectStart":182.10000002384186,"domainLookupEnd":182.10000002384186,"domainLookupStart":182.10000002384186,"fetchStart":182.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":182.10000002384186,"responseEnd":606.9000000357628,"responseStart":606.9000000357628,"secureConnectionStart":182.10000002384186},{"duration":425,"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":182.4000000357628,"connectEnd":182.4000000357628,"connectStart":182.4000000357628,"domainLookupEnd":182.4000000357628,"domainLookupStart":182.4000000357628,"fetchStart":182.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":182.4000000357628,"responseEnd":607.4000000357628,"responseStart":607.4000000357628,"secureConnectionStart":182.4000000357628},{"duration":425.19999998807907,"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":182.60000002384186,"connectEnd":182.60000002384186,"connectStart":182.60000002384186,"domainLookupEnd":182.60000002384186,"domainLookupStart":182.60000002384186,"fetchStart":182.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":182.60000002384186,"responseEnd":607.8000000119209,"responseStart":607.8000000119209,"secureConnectionStart":182.60000002384186},{"duration":489.10000002384186,"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":182.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":182.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":671.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":425.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":182.80000001192093,"connectEnd":182.80000001192093,"connectStart":182.80000001192093,"domainLookupEnd":182.80000001192093,"domainLookupStart":182.80000001192093,"fetchStart":182.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":182.80000001192093,"responseEnd":608.3000000119209,"responseStart":608.3000000119209,"secureConnectionStart":182.80000001192093},{"duration":489,"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":183,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":183,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":672,"responseStart":0,"secureConnectionStart":0},{"duration":425.69999998807907,"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":183.20000004768372,"connectEnd":183.20000004768372,"connectStart":183.20000004768372,"domainLookupEnd":183.20000004768372,"domainLookupStart":183.20000004768372,"fetchStart":183.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":183.20000004768372,"responseEnd":608.9000000357628,"responseStart":608.9000000357628,"secureConnectionStart":183.20000004768372},{"duration":752.8999999761581,"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":188.60000002384186,"connectEnd":188.60000002384186,"connectStart":188.60000002384186,"domainLookupEnd":188.60000002384186,"domainLookupStart":188.60000002384186,"fetchStart":188.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":188.60000002384186,"responseEnd":941.5,"responseStart":941.5,"secureConnectionStart":188.60000002384186},{"duration":1599.699999988079,"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":188.70000004768372,"connectEnd":188.70000004768372,"connectStart":188.70000004768372,"domainLookupEnd":188.70000004768372,"domainLookupStart":188.70000004768372,"fetchStart":188.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":188.70000004768372,"responseEnd":1788.4000000357628,"responseStart":1788.4000000357628,"secureConnectionStart":188.70000004768372},{"duration":258.69999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":683.6000000238419,"connectEnd":683.6000000238419,"connectStart":683.6000000238419,"domainLookupEnd":683.6000000238419,"domainLookupStart":683.6000000238419,"fetchStart":683.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":683.6000000238419,"responseEnd":942.3000000119209,"responseStart":942.2000000476837,"secureConnectionStart":683.6000000238419},{"duration":844.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":1004.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1004.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1848.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":838.3999999761581,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":1005.1000000238419,"connectEnd":1005.1000000238419,"connectStart":1005.1000000238419,"domainLookupEnd":1005.1000000238419,"domainLookupStart":1005.1000000238419,"fetchStart":1005.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":1005.1000000238419,"responseEnd":1843.5,"responseStart":1843.5,"secureConnectionStart":1005.1000000238419},{"duration":845.1000000238419,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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","startTime":1005.6000000238419,"connectEnd":1005.6000000238419,"connectStart":1005.6000000238419,"domainLookupEnd":1005.6000000238419,"domainLookupStart":1005.6000000238419,"fetchStart":1005.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":1005.6000000238419,"responseEnd":1850.7000000476837,"responseStart":1850.7000000476837,"secureConnectionStart":1005.6000000238419}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":6,"responseStart":176,"responseEnd":185,"domLoading":180,"domInteractive":1809,"domContentLoadedEventStart":1809,"domContentLoadedEventEnd":1849,"domComplete":2505,"loadEventStart":2505,"loadEventEnd":2505,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1791.9000000357628},{"name":"bigPipe.sidebar-id.end","time":1792.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1792.9000000357628},{"name":"bigPipe.activity-panel-pipe-id.end","time":1794},{"name":"activityTabFullyLoaded","time":1861.6000000238419}],"measures":[],"correlationId":"547c63a614aac3","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":20,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}