I've simplified my situation for this bug description:
We've two independent MariaDB clusters, both are a regular master-slave setup (let's call the masters A and B). There's also a MariaDB as data warehouse, using multi-source replication from both masters. All replications were created in the pre-GTID era using binlog_file and binlog_pos. Of course, both masters already generated GTIDs for the default domain id 0.
When we migrated to a GTID based replication, we configured master A with domain id 1 and B with domain id 2. All slaves in group A have now 2 GTIDs in gtid_slave_pos: one with domain 1 with a increasing sequence counter, and one with a static sequence counter the former default domain 0. Master A also keeps track of this GTID of domain 0 via gtid_binlog_pos (and gtid_binlog_state).
For master B and its slaves the same applies for domain 2 and 0, respectively. So far this is not a problem.
However, it's not possible to introduce GTID based replication on the warehouse. The last statement written in the pre-GTID era for the default domain id 0 originated from master B and has a lower sequence number than the GTID for domain 0 on master A.
Therefore, when executing
CHANGE MASTER "A" TO master_use_gtid = slave_pos, do_domain_id = (1), ignore_domain_id = ();
|
on the warehouse to allow its replication to use GTID, A attempts to scan the binlog not only for domain 1, but also for domain 0 (despite do_domain_id). Because the sequence number for domain 0 is lower than the one in A's gtid_binlog_pos, A refuses the connection with
Got fatal error 1236 from master when reading data from binary log: 'Error: connecting slave requested to start from GTID 0-XXXX-YYYY, which is not in the master's binlog
|
There's no way to ditch knowledge about domain 0 on the masters of A and B except setting gtid_binlog_state which would cause a RESET MASTER and therefore isn't applicable in live operation.
I assume that this issue is similar to MDEV-9108 which (as far as I understood) basically wants that do_domain_id also tells the master to ignore all other domains when scanning the binlogs for the starting position. This would solve my issue.
But after all I believe that it's easier to allow altering gtid_binlog_pos on the master (not directly or via gtid_binlog_state, but through a function call) to forget GTIDs for a specific domain id without issuing RESET MASTER.
{"report":{"fcp":1266.4000000953674,"ttfb":335.8000000715256,"pageVisibility":"visible","entityId":60078,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"56dd231a-5df8-4536-9d3f-d4e5f3190c99","navigationType":0,"readyForUser":1344,"redirectCount":0,"resourceLoadedEnd":1601,"resourceLoadedStart":346.3000000715256,"resourceTiming":[{"duration":221.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":346.3000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":568.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":222,"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":346.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":346.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":568.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":263.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":346.8000000715256,"connectEnd":346.8000000715256,"connectStart":346.8000000715256,"domainLookupEnd":346.8000000715256,"domainLookupStart":346.8000000715256,"fetchStart":346.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":346.8000000715256,"responseEnd":610.3000000715256,"responseStart":610.3000000715256,"secureConnectionStart":346.8000000715256},{"duration":344.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":347,"connectEnd":347,"connectStart":347,"domainLookupEnd":347,"domainLookupStart":347,"fetchStart":347,"redirectEnd":0,"redirectStart":0,"requestStart":347,"responseEnd":691.9000000953674,"responseStart":691.9000000953674,"secureConnectionStart":347},{"duration":349.2000000476837,"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":347.10000002384186,"connectEnd":347.10000002384186,"connectStart":347.10000002384186,"domainLookupEnd":347.10000002384186,"domainLookupStart":347.10000002384186,"fetchStart":347.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":347.10000002384186,"responseEnd":696.3000000715256,"responseStart":696.3000000715256,"secureConnectionStart":347.10000002384186},{"duration":349.60000002384186,"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":347.3000000715256,"connectEnd":347.3000000715256,"connectStart":347.3000000715256,"domainLookupEnd":347.3000000715256,"domainLookupStart":347.3000000715256,"fetchStart":347.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":347.3000000715256,"responseEnd":696.9000000953674,"responseStart":696.9000000953674,"secureConnectionStart":347.3000000715256},{"duration":350.10000002384186,"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":347.5,"connectEnd":347.5,"connectStart":347.5,"domainLookupEnd":347.5,"domainLookupStart":347.5,"fetchStart":347.5,"redirectEnd":0,"redirectStart":0,"requestStart":347.5,"responseEnd":697.6000000238419,"responseStart":697.6000000238419,"secureConnectionStart":347.5},{"duration":427.7000000476837,"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":347.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":775.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":350.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":347.8000000715256,"connectEnd":347.8000000715256,"connectStart":347.8000000715256,"domainLookupEnd":347.8000000715256,"domainLookupStart":347.8000000715256,"fetchStart":347.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":347.8000000715256,"responseEnd":698.1000000238419,"responseStart":698.1000000238419,"secureConnectionStart":347.8000000715256},{"duration":427.6999999284744,"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":347.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":775.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":350.60000002384186,"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":348.10000002384186,"connectEnd":348.10000002384186,"connectStart":348.10000002384186,"domainLookupEnd":348.10000002384186,"domainLookupStart":348.10000002384186,"fetchStart":348.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":348.10000002384186,"responseEnd":698.7000000476837,"responseStart":698.7000000476837,"secureConnectionStart":348.10000002384186},{"duration":1233.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":349,"connectEnd":349,"connectStart":349,"domainLookupEnd":349,"domainLookupStart":349,"fetchStart":349,"redirectEnd":0,"redirectStart":0,"requestStart":349,"responseEnd":1582.4000000953674,"responseStart":1582.4000000953674,"secureConnectionStart":349},{"duration":1233.6000000238419,"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":349.10000002384186,"connectEnd":349.10000002384186,"connectStart":349.10000002384186,"domainLookupEnd":349.10000002384186,"domainLookupStart":349.10000002384186,"fetchStart":349.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":349.10000002384186,"responseEnd":1582.7000000476837,"responseStart":1582.7000000476837,"secureConnectionStart":349.10000002384186},{"duration":501,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":808.7000000476837,"connectEnd":808.7000000476837,"connectStart":808.7000000476837,"domainLookupEnd":808.7000000476837,"domainLookupStart":808.7000000476837,"fetchStart":808.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":808.7000000476837,"responseEnd":1309.7000000476837,"responseStart":1309.7000000476837,"secureConnectionStart":808.7000000476837},{"duration":383.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1257.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1257.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1640.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":219,"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":1380.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1380.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1599.5,"responseStart":0,"secureConnectionStart":0},{"duration":218.19999992847443,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1381.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1381.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1599.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":211.59999990463257,"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":1382.4000000953674,"connectEnd":1382.4000000953674,"connectStart":1382.4000000953674,"domainLookupEnd":1382.4000000953674,"domainLookupStart":1382.4000000953674,"fetchStart":1382.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1382.4000000953674,"responseEnd":1594,"responseStart":1594,"secureConnectionStart":1382.4000000953674},{"duration":216.79999995231628,"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":1382.9000000953674,"connectEnd":1382.9000000953674,"connectStart":1382.9000000953674,"domainLookupEnd":1382.9000000953674,"domainLookupStart":1382.9000000953674,"fetchStart":1382.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1382.9000000953674,"responseEnd":1599.7000000476837,"responseStart":1599.7000000476837,"secureConnectionStart":1382.9000000953674},{"duration":217.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1383.5,"connectEnd":1383.5,"connectStart":1383.5,"domainLookupEnd":1383.5,"domainLookupStart":1383.5,"fetchStart":1383.5,"redirectEnd":0,"redirectStart":0,"requestStart":1383.5,"responseEnd":1601,"responseStart":1601,"secureConnectionStart":1383.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":174,"responseStart":336,"responseEnd":337,"domLoading":342,"domInteractive":1693,"domContentLoadedEventStart":1693,"domContentLoadedEventEnd":1745,"domComplete":3299,"loadEventStart":3299,"loadEventEnd":3300,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1656.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1657.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1657.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1665.6000000238419},{"name":"activityTabFullyLoaded","time":1751.8000000715256}],"measures":[],"correlationId":"2fcc242f85d3a7","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":14,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}