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.9000000953674,"ttfb":307.09999990463257,"pageVisibility":"visible","entityId":51301,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"d2adc7f4-51d9-46e0-a7d2-82ad2d990c85","navigationType":0,"readyForUser":1230,"redirectCount":0,"resourceLoadedEnd":1355.8000001907349,"resourceLoadedStart":312.80000019073486,"resourceTiming":[{"duration":307.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":312.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":620.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":307.6000003814697,"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":313.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":313.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":620.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":316.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":313.30000019073486,"connectEnd":313.30000019073486,"connectStart":313.30000019073486,"domainLookupEnd":313.30000019073486,"domainLookupStart":313.30000019073486,"fetchStart":313.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":313.30000019073486,"responseEnd":629.9000000953674,"responseStart":629.9000000953674,"secureConnectionStart":313.30000019073486},{"duration":368.09999990463257,"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":313.40000009536743,"connectEnd":313.40000009536743,"connectStart":313.40000009536743,"domainLookupEnd":313.40000009536743,"domainLookupStart":313.40000009536743,"fetchStart":313.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":313.40000009536743,"responseEnd":681.5,"responseStart":681.4000000953674,"secureConnectionStart":313.40000009536743},{"duration":371.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":313.80000019073486,"connectEnd":313.80000019073486,"connectStart":313.80000019073486,"domainLookupEnd":313.80000019073486,"domainLookupStart":313.80000019073486,"fetchStart":313.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":313.80000019073486,"responseEnd":685.7000002861023,"responseStart":685.7000002861023,"secureConnectionStart":313.80000019073486},{"duration":372.19999980926514,"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":313.90000009536743,"connectEnd":313.90000009536743,"connectStart":313.90000009536743,"domainLookupEnd":313.90000009536743,"domainLookupStart":313.90000009536743,"fetchStart":313.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":313.90000009536743,"responseEnd":686.0999999046326,"responseStart":686.0999999046326,"secureConnectionStart":313.90000009536743},{"duration":372.5,"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":314,"connectEnd":314,"connectStart":314,"domainLookupEnd":314,"domainLookupStart":314,"fetchStart":314,"redirectEnd":0,"redirectStart":0,"requestStart":314,"responseEnd":686.5,"responseStart":686.5,"secureConnectionStart":314},{"duration":460.09999990463257,"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":314.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":774.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":372.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":314.40000009536743,"connectEnd":314.40000009536743,"connectStart":314.40000009536743,"domainLookupEnd":314.40000009536743,"domainLookupStart":314.40000009536743,"fetchStart":314.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":314.40000009536743,"responseEnd":687,"responseStart":687,"secureConnectionStart":314.40000009536743},{"duration":459.90000009536743,"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":314.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":774.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":372.8999996185303,"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":314.7000002861023,"connectEnd":314.7000002861023,"connectStart":314.7000002861023,"domainLookupEnd":314.7000002861023,"domainLookupStart":314.7000002861023,"fetchStart":314.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":314.7000002861023,"responseEnd":687.5999999046326,"responseStart":687.5999999046326,"secureConnectionStart":314.7000002861023},{"duration":1039.6999998092651,"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":315.7000002861023,"connectEnd":315.7000002861023,"connectStart":315.7000002861023,"domainLookupEnd":315.7000002861023,"domainLookupStart":315.7000002861023,"fetchStart":315.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":315.7000002861023,"responseEnd":1355.4000000953674,"responseStart":1355.4000000953674,"secureConnectionStart":315.7000002861023},{"duration":1035.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":320,"connectEnd":320,"connectStart":320,"domainLookupEnd":320,"domainLookupStart":320,"fetchStart":320,"redirectEnd":0,"redirectStart":0,"requestStart":320,"responseEnd":1355.8000001907349,"responseStart":1355.8000001907349,"secureConnectionStart":320},{"duration":151.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":794.0999999046326,"connectEnd":794.0999999046326,"connectStart":794.0999999046326,"domainLookupEnd":794.0999999046326,"domainLookupStart":794.0999999046326,"fetchStart":794.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":794.0999999046326,"responseEnd":945.8000001907349,"responseStart":945.8000001907349,"secureConnectionStart":794.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":156,"responseStart":307,"responseEnd":312,"domLoading":311,"domInteractive":1383,"domContentLoadedEventStart":1383,"domContentLoadedEventEnd":1431,"domComplete":2898,"loadEventStart":2898,"loadEventEnd":2900,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1359},{"name":"bigPipe.sidebar-id.end","time":1359.7000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1360},{"name":"bigPipe.activity-panel-pipe-id.end","time":1361.5999999046326},{"name":"activityTabFullyLoaded","time":1448}],"measures":[],"correlationId":"70cd42da5fbf88","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":11,"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