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":1122.5,"ttfb":388.30000019073486,"pageVisibility":"visible","entityId":51301,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4b62187e-48aa-43e7-9f1c-ae45e2804a9d","navigationType":0,"readyForUser":1215.5,"redirectCount":0,"resourceLoadedEnd":1243.6999998092651,"resourceLoadedStart":393.5,"resourceTiming":[{"duration":187.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":393.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":393.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":581.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":188.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":393.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":393.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":581.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":249.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":394,"connectEnd":394,"connectStart":394,"domainLookupEnd":394,"domainLookupStart":394,"fetchStart":394,"redirectEnd":0,"redirectStart":0,"requestStart":394,"responseEnd":643.5999999046326,"responseStart":643.5999999046326,"secureConnectionStart":394},{"duration":330.59999990463257,"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":394.09999990463257,"connectEnd":394.09999990463257,"connectStart":394.09999990463257,"domainLookupEnd":394.09999990463257,"domainLookupStart":394.09999990463257,"fetchStart":394.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":394.09999990463257,"responseEnd":724.6999998092651,"responseStart":724.6999998092651,"secureConnectionStart":394.09999990463257},{"duration":334.69999980926514,"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":394.30000019073486,"connectEnd":394.30000019073486,"connectStart":394.30000019073486,"domainLookupEnd":394.30000019073486,"domainLookupStart":394.30000019073486,"fetchStart":394.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":394.30000019073486,"responseEnd":729,"responseStart":729,"secureConnectionStart":394.30000019073486},{"duration":335,"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":394.5,"connectEnd":394.5,"connectStart":394.5,"domainLookupEnd":394.5,"domainLookupStart":394.5,"fetchStart":394.5,"redirectEnd":0,"redirectStart":0,"requestStart":394.5,"responseEnd":729.5,"responseStart":729.5,"secureConnectionStart":394.5},{"duration":335.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":394.69999980926514,"connectEnd":394.69999980926514,"connectStart":394.69999980926514,"domainLookupEnd":394.69999980926514,"domainLookupStart":394.69999980926514,"fetchStart":394.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":394.69999980926514,"responseEnd":729.9000000953674,"responseStart":729.9000000953674,"secureConnectionStart":394.69999980926514},{"duration":396.59999990463257,"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":394.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":394.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":791.5,"responseStart":0,"secureConnectionStart":0},{"duration":335.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":395,"connectEnd":395,"connectStart":395,"domainLookupEnd":395,"domainLookupStart":395,"fetchStart":395,"redirectEnd":0,"redirectStart":0,"requestStart":395,"responseEnd":730.3000001907349,"responseStart":730.3000001907349,"secureConnectionStart":395},{"duration":396.3999996185303,"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":395.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":395.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":791.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":336.09999990463257,"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":395.40000009536743,"connectEnd":395.40000009536743,"connectStart":395.40000009536743,"domainLookupEnd":395.40000009536743,"domainLookupStart":395.40000009536743,"fetchStart":395.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":395.40000009536743,"responseEnd":731.5,"responseStart":731.5,"secureConnectionStart":395.40000009536743},{"duration":728.9000000953674,"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":432.19999980926514,"connectEnd":432.19999980926514,"connectStart":432.19999980926514,"domainLookupEnd":432.19999980926514,"domainLookupStart":432.19999980926514,"fetchStart":432.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":432.19999980926514,"responseEnd":1161.0999999046326,"responseStart":1161.0999999046326,"secureConnectionStart":432.19999980926514},{"duration":714.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":446.59999990463257,"connectEnd":446.59999990463257,"connectStart":446.59999990463257,"domainLookupEnd":446.59999990463257,"domainLookupStart":446.59999990463257,"fetchStart":446.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":446.59999990463257,"responseEnd":1161.5,"responseStart":1161.5,"secureConnectionStart":446.59999990463257},{"duration":177.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":803.9000000953674,"connectEnd":803.9000000953674,"connectStart":803.9000000953674,"domainLookupEnd":803.9000000953674,"domainLookupStart":803.9000000953674,"fetchStart":803.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":803.9000000953674,"responseEnd":981.5,"responseStart":981.5,"secureConnectionStart":803.9000000953674},{"duration":169.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":1074.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1074.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1243.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":87.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":1075,"connectEnd":1075,"connectStart":1075,"domainLookupEnd":1075,"domainLookupStart":1075,"fetchStart":1075,"redirectEnd":0,"redirectStart":0,"requestStart":1075,"responseEnd":1162.4000000953674,"responseStart":1162.4000000953674,"secureConnectionStart":1075},{"duration":89.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":1075.4000000953674,"connectEnd":1075.4000000953674,"connectStart":1075.4000000953674,"domainLookupEnd":1075.4000000953674,"domainLookupStart":1075.4000000953674,"fetchStart":1075.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1075.4000000953674,"responseEnd":1164.6999998092651,"responseStart":1164.6999998092651,"secureConnectionStart":1075.4000000953674},{"duration":192.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1116.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1116.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1308.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":215,"responseStart":388,"responseEnd":446,"domLoading":392,"domInteractive":1375,"domContentLoadedEventStart":1375,"domContentLoadedEventEnd":1431,"domComplete":2233,"loadEventStart":2233,"loadEventEnd":2234,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1320.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1321.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1321.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1323.0999999046326},{"name":"activityTabFullyLoaded","time":1448.4000000953674}],"measures":[],"correlationId":"b234e2e6168bf4","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":13,"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