Type:
New Feature
Priority:
Major
Resolution:
Unresolved
Fix Version/s:
None
MDEV-8685 added an acknowledgement that MySQL's anonymous GTIDs are a thing, enough to ignore them. I understand that MySQL 5.7.6+ adds these when a GTID is not present . This work is described in MySQL WL#7592 .
MySQL 8.0.23+ offers the ability to turn these anonymous GTID records into local or specified-base GTID with ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS - the LOCAL option essentially upgrades the binlog to be compatible with GTID-only downstream replicas, with the caveats noted.
This feature does not appear to work when there is no such record, as in replication from a MariaDB 10.11 server running in GTID_MODE = OFF, where a timestamp is inserted instead. Instead, an error is thrown trying to execute the relay log, as the replica's GTID_MODE = ON. So it'd be nice if MariaDB could operate in a compatibility mode that added these records to the binlog instead of timestamps (and potentially BEGIN) so that it was possible to feed a GTID-enabled MySQL replica in this manner.
Why? I'd like to use a cloud provider's MySQL hosting for a partial regional read-only replica, keeping my core services MariaDB, rather than switch to MySQL - which isn't supported on Debian, although I got the Ubuntu 22.04 LTS jammy-updates package working anyway to try to work around this issue.
Starting replication to the provider requires GTID_MODE = ON (not ON_PERMISSIVE), and uses AUTO_POSITION = 1, which causes replication to fail if I switch it back, as there are now anonymous transactions in the mix (e.g. "MySQL Errno - 13114: Got fatal error 1236 from master when reading data from binary log: 'Cannot replicate anonymous transaction when AUTO_POSITION = 1, at file ./binlog.000027, position 197...'").
I'm given to understand that it may be possible to go MariaDB -> MySQL 5.7 -> MySQL 8.0, but this seems ill-advised, especially as MySQL 5.7 is no longer generally supported. (It was tolerable to add a MySQL 8 replica, as I can use a full read-only replica anyway.)
I requested the provider add MariaDB (or consider relaxing their replication requirements), but given their focus is understandably on well-funded startups, this seems unlikely to happen. Getting ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS enabled might be easier, but would still require the MySQL intermediary unless MariaDB also implements them.
There are no comments yet on this issue.
{"report":{"fcp":1619.5,"ttfb":359.40000009536743,"pageVisibility":"visible","entityId":129188,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0c708bb5-7011-4034-8df4-746398a04840","navigationType":0,"readyForUser":1620.5,"redirectCount":0,"resourceLoadedEnd":1946.2000002861023,"resourceLoadedStart":365.6000003814697,"resourceTiming":[{"duration":527.7999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":365.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":365.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":893.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":527.9000000953674,"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":365.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":365.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":893.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":580.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":366,"connectEnd":366,"connectStart":366,"domainLookupEnd":366,"domainLookupStart":366,"fetchStart":366,"redirectEnd":0,"redirectStart":0,"requestStart":366,"responseEnd":946.7000002861023,"responseStart":946.7000002861023,"secureConnectionStart":366},{"duration":694.5,"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":366.1000003814697,"connectEnd":366.1000003814697,"connectStart":366.1000003814697,"domainLookupEnd":366.1000003814697,"domainLookupStart":366.1000003814697,"fetchStart":366.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":366.1000003814697,"responseEnd":1060.6000003814697,"responseStart":1060.6000003814697,"secureConnectionStart":366.1000003814697},{"duration":698.2000002861023,"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":366.40000009536743,"connectEnd":366.40000009536743,"connectStart":366.40000009536743,"domainLookupEnd":366.40000009536743,"domainLookupStart":366.40000009536743,"fetchStart":366.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":366.40000009536743,"responseEnd":1064.6000003814697,"responseStart":1064.5,"secureConnectionStart":366.40000009536743},{"duration":698.6000003814697,"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":366.5,"connectEnd":366.5,"connectStart":366.5,"domainLookupEnd":366.5,"domainLookupStart":366.5,"fetchStart":366.5,"redirectEnd":0,"redirectStart":0,"requestStart":366.5,"responseEnd":1065.1000003814697,"responseStart":1065.1000003814697,"secureConnectionStart":366.5},{"duration":698.6999998092651,"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":366.80000019073486,"connectEnd":366.80000019073486,"connectStart":366.80000019073486,"domainLookupEnd":366.80000019073486,"domainLookupStart":366.80000019073486,"fetchStart":366.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":366.80000019073486,"responseEnd":1065.5,"responseStart":1065.5,"secureConnectionStart":366.80000019073486},{"duration":751.6000003814697,"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":367,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":367,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1118.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":698.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":367.1000003814697,"connectEnd":367.1000003814697,"connectStart":367.1000003814697,"domainLookupEnd":367.1000003814697,"domainLookupStart":367.1000003814697,"fetchStart":367.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":367.1000003814697,"responseEnd":1066,"responseStart":1066,"secureConnectionStart":367.1000003814697},{"duration":753.6999998092651,"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":367.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":367.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1121,"responseStart":0,"secureConnectionStart":0},{"duration":699.3000001907349,"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":367.5,"connectEnd":367.5,"connectStart":367.5,"domainLookupEnd":367.5,"domainLookupStart":367.5,"fetchStart":367.5,"redirectEnd":0,"redirectStart":0,"requestStart":367.5,"responseEnd":1066.8000001907349,"responseStart":1066.8000001907349,"secureConnectionStart":367.5},{"duration":1318.2000002861023,"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":373,"connectEnd":373,"connectStart":373,"domainLookupEnd":373,"domainLookupStart":373,"fetchStart":373,"redirectEnd":0,"redirectStart":0,"requestStart":373,"responseEnd":1691.2000002861023,"responseStart":1691.2000002861023,"secureConnectionStart":373},{"duration":1573.0999999046326,"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":373.1000003814697,"connectEnd":373.1000003814697,"connectStart":373.1000003814697,"domainLookupEnd":373.1000003814697,"domainLookupStart":373.1000003814697,"fetchStart":373.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":373.1000003814697,"responseEnd":1946.2000002861023,"responseStart":1946.2000002861023,"secureConnectionStart":373.1000003814697},{"duration":337.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1151.8000001907349,"connectEnd":1151.8000001907349,"connectStart":1151.8000001907349,"domainLookupEnd":1151.8000001907349,"domainLookupStart":1151.8000001907349,"fetchStart":1151.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1151.8000001907349,"responseEnd":1489.7000002861023,"responseStart":1489.7000002861023,"secureConnectionStart":1151.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":199,"responseStart":360,"responseEnd":369,"domLoading":364,"domInteractive":1966,"domContentLoadedEventStart":1966,"domContentLoadedEventEnd":2006,"domComplete":2584,"loadEventStart":2584,"loadEventEnd":2585,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1951.1000003814697},{"name":"bigPipe.sidebar-id.end","time":1952.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1952.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1952.8000001907349},{"name":"activityTabFullyLoaded","time":2012.5}],"measures":[],"correlationId":"82fe7fd046fc93","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}