For replicas that don't support GTIDs, a MariaDB primary will convert its GTID event into a Query log event with the query BEGIN. This event writes zeroes for the Query log event's thread_id, however, since MDEV-7850, where GTID events were extended with thread_id, we can now populate the thread_id of the generated Query log event with that same value. Note this GTID to Query log event logic happens in function Query_log_event::begin_event (in sql/log_event.cc).
Note that the inverse (i.e. MySQL Master -> MariaDB Slave (w/ MDEV-7850)) will correctly populate the thread_id of the GTID event using the thread_id of the Query log event, so nothing needs to be done in this case.
{"report":{"fcp":1142.5,"ttfb":430.2999997138977,"pageVisibility":"visible","entityId":131821,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"cc5a45af-037c-47bf-bcbb-0b234aaaf826","navigationType":0,"readyForUser":1215.1999998092651,"redirectCount":0,"resourceLoadedEnd":776,"resourceLoadedStart":440.19999980926514,"resourceTiming":[{"duration":26.800000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":440.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":440.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":467,"responseStart":0,"secureConnectionStart":0},{"duration":26.90000009536743,"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":440.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":440.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":467.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":174.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":440.69999980926514,"connectEnd":440.69999980926514,"connectStart":440.69999980926514,"domainLookupEnd":440.69999980926514,"domainLookupStart":440.69999980926514,"fetchStart":440.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":473.40000009536743,"responseEnd":615.4000000953674,"responseStart":486.59999990463257,"secureConnectionStart":440.69999980926514},{"duration":335.2000002861023,"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":440.7999997138977,"connectEnd":440.7999997138977,"connectStart":440.7999997138977,"domainLookupEnd":440.7999997138977,"domainLookupStart":440.7999997138977,"fetchStart":440.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":474.7999997138977,"responseEnd":776,"responseStart":488.40000009536743,"secureConnectionStart":440.7999997138977},{"duration":70.59999990463257,"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":441,"connectEnd":441,"connectStart":441,"domainLookupEnd":441,"domainLookupStart":441,"fetchStart":441,"redirectEnd":0,"redirectStart":0,"requestStart":479.59999990463257,"responseEnd":511.59999990463257,"responseStart":508.59999990463257,"secureConnectionStart":441},{"duration":70.7000002861023,"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":441.19999980926514,"connectEnd":441.19999980926514,"connectStart":441.19999980926514,"domainLookupEnd":441.19999980926514,"domainLookupStart":441.19999980926514,"fetchStart":441.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":480.2999997138977,"responseEnd":511.90000009536743,"responseStart":509.2999997138977,"secureConnectionStart":441.19999980926514},{"duration":54,"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":441.40000009536743,"connectEnd":441.40000009536743,"connectStart":441.40000009536743,"domainLookupEnd":441.40000009536743,"domainLookupStart":441.40000009536743,"fetchStart":441.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":481.19999980926514,"responseEnd":495.40000009536743,"responseStart":494.5,"secureConnectionStart":441.40000009536743},{"duration":38.30000019073486,"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":441.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":441.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":479.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":64.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":441.69999980926514,"connectEnd":441.69999980926514,"connectStart":441.69999980926514,"domainLookupEnd":441.69999980926514,"domainLookupStart":441.69999980926514,"fetchStart":441.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":491.5,"responseEnd":506,"responseStart":503,"secureConnectionStart":441.69999980926514},{"duration":47.89999961853027,"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":441.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":441.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":489.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":83.19999980926514,"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":442,"connectEnd":442,"connectStart":442,"domainLookupEnd":442,"domainLookupStart":442,"fetchStart":442,"redirectEnd":0,"redirectStart":0,"requestStart":491.59999990463257,"responseEnd":525.1999998092651,"responseStart":506.19999980926514,"secureConnectionStart":442},{"duration":312.59999990463257,"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":443.19999980926514,"connectEnd":443.19999980926514,"connectStart":443.19999980926514,"domainLookupEnd":443.19999980926514,"domainLookupStart":443.19999980926514,"fetchStart":443.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":541.4000000953674,"responseEnd":755.7999997138977,"responseStart":749.1999998092651,"secureConnectionStart":443.19999980926514},{"duration":313.09999990463257,"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":443.19999980926514,"connectEnd":443.19999980926514,"connectStart":443.19999980926514,"domainLookupEnd":443.19999980926514,"domainLookupStart":443.19999980926514,"fetchStart":443.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":592.5999999046326,"responseEnd":756.2999997138977,"responseStart":750.5,"secureConnectionStart":443.19999980926514},{"duration":152,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":760.0999999046326,"connectEnd":760.0999999046326,"connectStart":760.0999999046326,"domainLookupEnd":760.0999999046326,"domainLookupStart":760.0999999046326,"fetchStart":760.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":873.5,"responseEnd":912.0999999046326,"responseStart":910.6999998092651,"secureConnectionStart":760.0999999046326},{"duration":224.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1046.1999998092651,"connectEnd":1046.1999998092651,"connectStart":1046.1999998092651,"domainLookupEnd":1046.1999998092651,"domainLookupStart":1046.1999998092651,"fetchStart":1046.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1238.5,"responseEnd":1270.9000000953674,"responseStart":1269.7999997138977,"secureConnectionStart":1046.1999998092651},{"duration":189.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1111.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1111.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1301.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":19,"domainLookupEnd":191,"connectStart":191,"connectEnd":211,"secureConnectionStart":200,"requestStart":212,"responseStart":431,"responseEnd":435,"domLoading":438,"domInteractive":1309,"domContentLoadedEventStart":1309,"domContentLoadedEventEnd":1359,"domComplete":1692,"loadEventStart":1692,"loadEventEnd":1692,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1284.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1285.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1285.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1286.4000000953674},{"name":"activityTabFullyLoaded","time":1376.5}],"measures":[],"correlationId":"ed545cb15a6ad0","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":13,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
https://github.com/MariaDB/server/pull/3707