I am using MariaDB 10.0.14 at CentOS 6.5.
And, as I mentioned at the title of this question, the relay-log is not
flushed after the slave-relay-log.999999 showed when using
"Salve_parallel_threads:10" setting. like showed blow.
- binlog_format: ROW
- Slave_parallel_threads:10
Everything are working fine except the "slave-relay-log.******" files
continue to exist at the disk which will finally cause the disk full.
If I change the value of Slave_parallel_threads setting from 10 to 0,
the log will be flushed. Howevery "PK duplicate warning" error logs come
next.
Is there any setting should be used with Slave_parallel_threads setting?
Any help will be great.
Best regareds,
{"report":{"fcp":1257.2999997138977,"ttfb":365.7999997138977,"pageVisibility":"visible","entityId":51301,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"e9504953-a778-4228-88e7-73a5d6d48637","navigationType":0,"readyForUser":1374.7999997138977,"redirectCount":0,"resourceLoadedEnd":987.7999997138977,"resourceLoadedStart":371.5,"resourceTiming":[{"duration":53.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":371.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":371.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":425.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":54.09999990463257,"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":371.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":371.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":425.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":274.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":372,"connectEnd":372,"connectStart":372,"domainLookupEnd":372,"domainLookupStart":372,"fetchStart":372,"redirectEnd":0,"redirectStart":0,"requestStart":429.8999996185303,"responseEnd":646.6999998092651,"responseStart":446.3999996185303,"secureConnectionStart":372},{"duration":572.0999999046326,"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":372.09999990463257,"connectEnd":428.3999996185303,"connectStart":428.3999996185303,"domainLookupEnd":428.3999996185303,"domainLookupStart":428.3999996185303,"fetchStart":372.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":429.3999996185303,"responseEnd":944.1999998092651,"responseStart":442.2999997138977,"secureConnectionStart":428.3999996185303},{"duration":126.90000009536743,"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":372.3999996185303,"connectEnd":372.3999996185303,"connectStart":372.3999996185303,"domainLookupEnd":372.3999996185303,"domainLookupStart":372.3999996185303,"fetchStart":372.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":475.69999980926514,"responseEnd":499.2999997138977,"responseStart":496.7999997138977,"secureConnectionStart":372.3999996185303},{"duration":126.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":372.5,"connectEnd":372.5,"connectStart":372.5,"domainLookupEnd":372.5,"domainLookupStart":372.5,"fetchStart":372.5,"redirectEnd":0,"redirectStart":0,"requestStart":475.8999996185303,"responseEnd":499.2999997138977,"responseStart":495.8999996185303,"secureConnectionStart":372.5},{"duration":127.2000002861023,"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":372.7999997138977,"connectEnd":372.7999997138977,"connectStart":372.7999997138977,"domainLookupEnd":372.7999997138977,"domainLookupStart":372.7999997138977,"fetchStart":372.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":476.09999990463257,"responseEnd":500,"responseStart":497.69999980926514,"secureConnectionStart":372.7999997138977},{"duration":95.89999961853027,"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":373,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":468.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":135.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":373.09999990463257,"connectEnd":373.09999990463257,"connectStart":373.09999990463257,"domainLookupEnd":373.09999990463257,"domainLookupStart":373.09999990463257,"fetchStart":373.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":476.09999990463257,"responseEnd":508.19999980926514,"responseStart":498.3999996185303,"secureConnectionStart":373.09999990463257},{"duration":96.40000009536743,"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":373.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":469.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":144.60000038146973,"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":373.3999996185303,"connectEnd":373.3999996185303,"connectStart":373.3999996185303,"domainLookupEnd":373.3999996185303,"domainLookupStart":373.3999996185303,"fetchStart":373.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":477.69999980926514,"responseEnd":518,"responseStart":499.3999996185303,"secureConnectionStart":373.3999996185303},{"duration":602.7999997138977,"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":384,"connectEnd":384,"connectStart":384,"domainLookupEnd":384,"domainLookupStart":384,"fetchStart":384,"redirectEnd":0,"redirectStart":0,"requestStart":670.1999998092651,"responseEnd":986.7999997138977,"responseStart":982.2999997138977,"secureConnectionStart":384},{"duration":603.6999998092651,"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":384.09999990463257,"connectEnd":384.09999990463257,"connectStart":384.09999990463257,"domainLookupEnd":384.09999990463257,"domainLookupStart":384.09999990463257,"fetchStart":384.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":675.0999999046326,"responseEnd":987.7999997138977,"responseStart":983.5,"secureConnectionStart":384.09999990463257},{"duration":195,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":794.6999998092651,"connectEnd":794.6999998092651,"connectStart":794.6999998092651,"domainLookupEnd":794.6999998092651,"domainLookupStart":794.6999998092651,"fetchStart":794.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":955.3999996185303,"responseEnd":989.6999998092651,"responseStart":988.6999998092651,"secureConnectionStart":794.6999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":213,"responseStart":366,"responseEnd":377,"domLoading":369,"domInteractive":1478,"domContentLoadedEventStart":1478,"domContentLoadedEventEnd":1535,"domComplete":2004,"loadEventStart":2004,"loadEventEnd":2004,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1449.8999996185303},{"name":"bigPipe.sidebar-id.end","time":1450.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1450.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1452.3999996185303},{"name":"activityTabFullyLoaded","time":1551.8999996185303}],"measures":[],"correlationId":"7929e0f47726ab","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I also came into this issue a few days ago, and I have located this bug and fixed it, I've attached my patch here.
The problem is that in Relay_log_info::inc_group_relay_log_pos() function, they way you compare two log name is via strcmp() function, this is fine when log name sequence number are both of the same digits( 6 digits). but when the number goes to 7 digits, a 99999 compares greater than 1000000, which is wrong, hence the bug.
Besides this bug, I also located another bug caused by the same mistake in handle_queued_pos_update(), which could cause parallel replication issues when log name sequence number goes to 7 digits.
999999.diff