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":1173.3999996185303,"ttfb":491.3999996185303,"pageVisibility":"visible","entityId":51301,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ad605936-3836-492c-9e05-9343670f6774","navigationType":0,"readyForUser":1246.1999998092651,"redirectCount":0,"resourceLoadedEnd":966.5999999046326,"resourceLoadedStart":500.09999990463257,"resourceTiming":[{"duration":159.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":500.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":500.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":660,"responseStart":0,"secureConnectionStart":0},{"duration":160,"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":500.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":500.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":660.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":227.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":500.59999990463257,"connectEnd":500.59999990463257,"connectStart":500.59999990463257,"domainLookupEnd":500.59999990463257,"domainLookupStart":500.59999990463257,"fetchStart":500.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":663.5,"responseEnd":728.1999998092651,"responseStart":698,"secureConnectionStart":500.59999990463257},{"duration":257.90000009536743,"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":501.2999997138977,"connectEnd":501.2999997138977,"connectStart":501.2999997138977,"domainLookupEnd":501.2999997138977,"domainLookupStart":501.2999997138977,"fetchStart":501.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":662.5,"responseEnd":759.1999998092651,"responseStart":712.7999997138977,"secureConnectionStart":501.2999997138977},{"duration":175.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":501.5,"connectEnd":663.3999996185303,"connectStart":663.3999996185303,"domainLookupEnd":663.3999996185303,"domainLookupStart":663.3999996185303,"fetchStart":501.5,"redirectEnd":0,"redirectStart":0,"requestStart":663.6999998092651,"responseEnd":676.5999999046326,"responseStart":675.5999999046326,"secureConnectionStart":663.3999996185303},{"duration":177.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":501.69999980926514,"connectEnd":501.69999980926514,"connectStart":501.69999980926514,"domainLookupEnd":501.69999980926514,"domainLookupStart":501.69999980926514,"fetchStart":501.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":664.6999998092651,"responseEnd":679.1999998092651,"responseStart":677.7999997138977,"secureConnectionStart":501.69999980926514},{"duration":180.90000009536743,"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":501.8999996185303,"connectEnd":501.8999996185303,"connectStart":501.8999996185303,"domainLookupEnd":501.8999996185303,"domainLookupStart":501.8999996185303,"fetchStart":501.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":665.2999997138977,"responseEnd":682.7999997138977,"responseStart":680.5999999046326,"secureConnectionStart":501.8999996185303},{"duration":162,"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":502.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":502.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":664.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":163.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":502.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":502.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":665.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":180.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":502.2999997138977,"connectEnd":502.2999997138977,"connectStart":502.2999997138977,"domainLookupEnd":502.2999997138977,"domainLookupStart":502.2999997138977,"fetchStart":502.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":666.2999997138977,"responseEnd":683,"responseStart":681.2999997138977,"secureConnectionStart":502.2999997138977},{"duration":188.59999990463257,"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":502.59999990463257,"connectEnd":502.59999990463257,"connectStart":502.59999990463257,"domainLookupEnd":502.59999990463257,"domainLookupStart":502.59999990463257,"fetchStart":502.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":669.6999998092651,"responseEnd":691.1999998092651,"responseStart":687.8999996185303,"secureConnectionStart":502.59999990463257},{"duration":459.19999980926514,"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":506.19999980926514,"connectEnd":506.19999980926514,"connectStart":506.19999980926514,"domainLookupEnd":506.19999980926514,"domainLookupStart":506.19999980926514,"fetchStart":506.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":951.5,"responseEnd":965.3999996185303,"responseStart":964.2999997138977,"secureConnectionStart":506.19999980926514},{"duration":460.30000019073486,"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":506.2999997138977,"connectEnd":506.2999997138977,"connectStart":506.2999997138977,"domainLookupEnd":506.2999997138977,"domainLookupStart":506.2999997138977,"fetchStart":506.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":952.0999999046326,"responseEnd":966.5999999046326,"responseStart":965.5999999046326,"secureConnectionStart":506.2999997138977},{"duration":217.89999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":922,"connectEnd":922,"connectStart":922,"domainLookupEnd":922,"domainLookupStart":922,"fetchStart":922,"redirectEnd":0,"redirectStart":0,"requestStart":1105,"responseEnd":1139.8999996185303,"responseStart":1138.7999997138977,"secureConnectionStart":922}],"fetchStart":0,"domainLookupStart":248,"domainLookupEnd":295,"connectStart":295,"connectEnd":317,"secureConnectionStart":305,"requestStart":318,"responseStart":492,"responseEnd":506,"domLoading":495,"domInteractive":1322,"domContentLoadedEventStart":1322,"domContentLoadedEventEnd":1367,"domComplete":2461,"loadEventStart":2461,"loadEventEnd":2461,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1296.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1297.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1297.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1299.2999997138977},{"name":"activityTabFullyLoaded","time":1389.0999999046326}],"measures":[],"correlationId":"ce7c4f98c67e69","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"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