After upgrading to 10.1.20, replication now intermittently stops (randomly and not all slaves of a master at the same time) with the following errors:
2017-10-01 20:38:20 140079966804736 [ERROR] Master 'trades': Error reading packet from server: bogus data in log event; the first event 'mysql-bin.038184' at 156161357, the last event read from 'mysql-bin.038185' at 60018003, the last byte read from 'mysql-bin.038185' at 60018022. (server_errno=1236)
|
2017-10-01 20:38:20 140079966804736 [ERROR] Master 'trades': Slave I/O: Got fatal error 1236 from master when reading data from binary log: 'bogus data in log event; the first event 'mysql-bin.038184' at 156161357, the last event read from 'mysql-bin.038185' at 60018003, the last byte read from 'mysql-bin.038185' at 60018022.', Internal MariaDB error code: 1236
|
We can fix this by issuing a START SLAVE and everything works without issue but the regular replication failures occurs.
It looks like upstream bug : https://bugs.mysql.com/bug.php?id=84752
With setting slave_compressed_protocol=1 and change the sync_binlog value to off, it's working fine. This is not easily reproducible. As per the comment in upstream bug, able to reproduce only with high load on master server and multiple slaves (like 5 or 6)
- relates to
-
MDEV-19689
Replication I/O thread stops daily: "bogus data in log event"
-
-
Closed
- links to
-
{"report":{"fcp":990,"ttfb":214.59999990463257,"pageVisibility":"visible","entityId":63505,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"533ee314-7e12-45c7-aa0a-eb3e70803cf9","navigationType":0,"readyForUser":1063.0999999046326,"redirectCount":0,"resourceLoadedEnd":1608.5999999046326,"resourceLoadedStart":223.30000019073486,"resourceTiming":[{"duration":300.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":223.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":523.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":300.5,"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":223.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":524.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":309.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":223.90000009536743,"connectEnd":223.90000009536743,"connectStart":223.90000009536743,"domainLookupEnd":223.90000009536743,"domainLookupStart":223.90000009536743,"fetchStart":223.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":223.90000009536743,"responseEnd":533.1999998092651,"responseStart":533.1999998092651,"secureConnectionStart":223.90000009536743},{"duration":348.69999980926514,"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":224.5,"connectEnd":224.5,"connectStart":224.5,"domainLookupEnd":224.5,"domainLookupStart":224.5,"fetchStart":224.5,"redirectEnd":0,"redirectStart":0,"requestStart":224.5,"responseEnd":573.1999998092651,"responseStart":573.1999998092651,"secureConnectionStart":224.5},{"duration":352.6000003814697,"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":224.69999980926514,"connectEnd":224.69999980926514,"connectStart":224.69999980926514,"domainLookupEnd":224.69999980926514,"domainLookupStart":224.69999980926514,"fetchStart":224.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":224.69999980926514,"responseEnd":577.3000001907349,"responseStart":577.3000001907349,"secureConnectionStart":224.69999980926514},{"duration":352.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":224.90000009536743,"connectEnd":224.90000009536743,"connectStart":224.90000009536743,"domainLookupEnd":224.90000009536743,"domainLookupStart":224.90000009536743,"fetchStart":224.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":224.90000009536743,"responseEnd":577.6999998092651,"responseStart":577.6999998092651,"secureConnectionStart":224.90000009536743},{"duration":353,"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":225.09999990463257,"connectEnd":225.09999990463257,"connectStart":225.09999990463257,"domainLookupEnd":225.09999990463257,"domainLookupStart":225.09999990463257,"fetchStart":225.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":225.09999990463257,"responseEnd":578.0999999046326,"responseStart":578.0999999046326,"secureConnectionStart":225.09999990463257},{"duration":451.19999980926514,"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":225.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":225.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":676.5,"responseStart":0,"secureConnectionStart":0},{"duration":353.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":225.40000009536743,"connectEnd":225.40000009536743,"connectStart":225.40000009536743,"domainLookupEnd":225.40000009536743,"domainLookupStart":225.40000009536743,"fetchStart":225.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":225.40000009536743,"responseEnd":578.5,"responseStart":578.5,"secureConnectionStart":225.40000009536743},{"duration":451.09999990463257,"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":225.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":225.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":676.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":353.19999980926514,"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":225.80000019073486,"connectEnd":225.80000019073486,"connectStart":225.80000019073486,"domainLookupEnd":225.80000019073486,"domainLookupStart":225.80000019073486,"fetchStart":225.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":225.80000019073486,"responseEnd":579,"responseStart":579,"secureConnectionStart":225.80000019073486},{"duration":982.4000000953674,"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":231.09999990463257,"connectEnd":231.09999990463257,"connectStart":231.09999990463257,"domainLookupEnd":231.09999990463257,"domainLookupStart":231.09999990463257,"fetchStart":231.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":231.09999990463257,"responseEnd":1213.5,"responseStart":1213.4000000953674,"secureConnectionStart":231.09999990463257},{"duration":1369.9000000953674,"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":238.69999980926514,"connectEnd":238.69999980926514,"connectStart":238.69999980926514,"domainLookupEnd":238.69999980926514,"domainLookupStart":238.69999980926514,"fetchStart":238.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":238.69999980926514,"responseEnd":1608.5999999046326,"responseStart":1608.5999999046326,"secureConnectionStart":238.69999980926514},{"duration":525.8000001907349,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":688.0999999046326,"connectEnd":688.0999999046326,"connectStart":688.0999999046326,"domainLookupEnd":688.0999999046326,"domainLookupStart":688.0999999046326,"fetchStart":688.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":688.0999999046326,"responseEnd":1213.9000000953674,"responseStart":1213.9000000953674,"secureConnectionStart":688.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":56,"responseStart":214,"responseEnd":240,"domLoading":217,"domInteractive":1638,"domContentLoadedEventStart":1638,"domContentLoadedEventEnd":1684,"domComplete":2636,"loadEventStart":2636,"loadEventEnd":2637,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1610.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1611.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1611.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1613.4000000953674},{"name":"activityTabFullyLoaded","time":1701.0999999046326}],"measures":[],"correlationId":"818540281c048a","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
@serg: Hello. I have a patch to
MDEV-14014which adds a feature to IO_CACHE which fixes the bug. I would be good someone outside repl to look at. I am to publish it yet.serg4:07 PM
sure, I can do it