Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
This bug is also seen as a sporadic failure/crash in rpl.rpl_from_mysql80.
When read_log_event() gets an error reading an event, it sets file->error=-1:
/*
The SQL slave thread will check if file->error<0 to know
if there was an I/O error. Even if there is no "low-level" I/O errors
with 'file', any of the high-level above errors is worrying
enough to stop the SQL thread now ; as we are skipping the current event,
going on with reading and successfully executing other events can
only corrupt the slave's databases. So stop.
*/
file->error= -1;
But this is wrong, the file can be the "hot" relaylog that is simultaneously being written by the IO thread, so the file->error flag is shared with that thread. Setting it can cause the IO thread to wrongly detect a write error and disable the relay log. There was then also a missing test for disabled relay log in CHANGE MASTER which could crash on nullptr.
{"report":{"fcp":1368.7999997138977,"ttfb":366.90000009536743,"pageVisibility":"visible","entityId":132309,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9aa694ac-d6ab-4de6-95d7-4d989302ec4d","navigationType":0,"readyForUser":1458.1999998092651,"redirectCount":0,"resourceLoadedEnd":1295.4000000953674,"resourceLoadedStart":375.40000009536743,"resourceTiming":[{"duration":454,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":375.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":375.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":829.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":454,"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":375.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":375.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":829.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":601.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":376,"connectEnd":376,"connectStart":376,"domainLookupEnd":376,"domainLookupStart":376,"fetchStart":376,"redirectEnd":0,"redirectStart":0,"requestStart":832.6999998092651,"responseEnd":977.4000000953674,"responseStart":846,"secureConnectionStart":376},{"duration":712.4000000953674,"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":376.59999990463257,"connectEnd":376.59999990463257,"connectStart":376.59999990463257,"domainLookupEnd":376.59999990463257,"domainLookupStart":376.59999990463257,"fetchStart":376.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":833.7999997138977,"responseEnd":1089,"responseStart":848.0999999046326,"secureConnectionStart":376.59999990463257},{"duration":475.09999990463257,"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":376.90000009536743,"connectEnd":376.90000009536743,"connectStart":376.90000009536743,"domainLookupEnd":376.90000009536743,"domainLookupStart":376.90000009536743,"fetchStart":376.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":835.2999997138977,"responseEnd":852,"responseStart":850,"secureConnectionStart":376.90000009536743},{"duration":474.7999997138977,"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":377,"connectEnd":377,"connectStart":377,"domainLookupEnd":377,"domainLookupStart":377,"fetchStart":377,"redirectEnd":0,"redirectStart":0,"requestStart":835.5,"responseEnd":851.7999997138977,"responseStart":849.5,"secureConnectionStart":377},{"duration":478.09999990463257,"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":377.19999980926514,"connectEnd":377.19999980926514,"connectStart":377.19999980926514,"domainLookupEnd":377.19999980926514,"domainLookupStart":377.19999980926514,"fetchStart":377.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":837,"responseEnd":855.2999997138977,"responseStart":853.5999999046326,"secureConnectionStart":377.19999980926514},{"duration":458.3999996185303,"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":377.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":377.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":835.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":493.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":377.59999990463257,"connectEnd":377.59999990463257,"connectStart":377.59999990463257,"domainLookupEnd":377.59999990463257,"domainLookupStart":377.59999990463257,"fetchStart":377.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":841.2999997138977,"responseEnd":870.7999997138977,"responseStart":869.0999999046326,"secureConnectionStart":377.59999990463257},{"duration":459.80000019073486,"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":377.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":377.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":837.5,"responseStart":0,"secureConnectionStart":0},{"duration":494,"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":377.7999997138977,"connectEnd":377.7999997138977,"connectStart":377.7999997138977,"domainLookupEnd":377.7999997138977,"domainLookupStart":377.7999997138977,"fetchStart":377.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":841.6999998092651,"responseEnd":871.7999997138977,"responseStart":869.6999998092651,"secureConnectionStart":377.7999997138977},{"duration":707.2999997138977,"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":379.5,"connectEnd":379.5,"connectStart":379.5,"domainLookupEnd":379.5,"domainLookupStart":379.5,"fetchStart":379.5,"redirectEnd":0,"redirectStart":0,"requestStart":1075.2999997138977,"responseEnd":1086.7999997138977,"responseStart":1085.5999999046326,"secureConnectionStart":379.5},{"duration":915.8000001907349,"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":379.59999990463257,"connectEnd":379.59999990463257,"connectStart":379.59999990463257,"domainLookupEnd":379.59999990463257,"domainLookupStart":379.59999990463257,"fetchStart":379.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":1284.5,"responseEnd":1295.4000000953674,"responseStart":1294.6999998092651,"secureConnectionStart":379.59999990463257},{"duration":202.10000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1115.7999997138977,"connectEnd":1115.7999997138977,"connectStart":1115.7999997138977,"domainLookupEnd":1115.7999997138977,"domainLookupStart":1115.7999997138977,"fetchStart":1115.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1287.5,"responseEnd":1317.9000000953674,"responseStart":1316.2999997138977,"secureConnectionStart":1115.7999997138977},{"duration":174.2999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1359.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1359.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1534.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":139.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1367.6999998092651,"connectEnd":1367.6999998092651,"connectStart":1367.6999998092651,"domainLookupEnd":1367.6999998092651,"domainLookupStart":1367.6999998092651,"fetchStart":1367.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1474.9000000953674,"responseEnd":1507.0999999046326,"responseStart":1506,"secureConnectionStart":1367.6999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":200,"responseStart":367,"responseEnd":378,"domLoading":370,"domInteractive":1568,"domContentLoadedEventStart":1568,"domContentLoadedEventEnd":1606,"domComplete":1899,"loadEventStart":1899,"loadEventEnd":1899,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1536.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1537.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1537.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1538.5999999046326},{"name":"activityTabFullyLoaded","time":1619.0999999046326}],"measures":[],"correlationId":"1832540c8cbb68","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":86,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Pushed to 10.6