In OM => NS replication with NS having MDEV-16546 and OM not having it, if the slave is running with global system_versioning_insert_history=on, INSERT IGNORE executed on the master in statement/mixed mode and inserting values into custom-made period columns will be accepted with the warnings, and values for row columns will be ignored; but it will be replicated to the slave "as is", and since the binlog of the old master doesn't enforce system_versioning_insert_history=off, it will be executed with the global value on and thus will be treated as inserting the history. So, the master and slave will end with different values.
That is, on master
set binlog_format=mixed;
createorreplacetable t (a int, s timestamp(6) as row start, e timestamp(6) as row end, period for system_time(s,e)) with system versioning;
insertignoreinto t values (1,'2024-01-01','2025-01-01');
will produce on the master
10.3 78030b67b9
MariaDB [test]> insertignoreinto t values (1,'2024-01-01','2025-01-01');
I can fix it. Normally, when in a version X.Y.Z we add a new setting, that's written to binlog, then when replicating NM=>NS, the slave will get its value from the master, and on OM=>NS, it'll use the actual configured value on the slave side.
In this case, I can make it so that in OM=>NS the slave will take the value from the master, which will be 0, as OM doesn't have system_versioning_insert_history.
Sergei Golubchik
added a comment - - edited I can fix it. Normally, when in a version X.Y.Z we add a new setting, that's written to binlog, then when replicating NM=>NS, the slave will get its value from the master, and on OM=>NS, it'll use the actual configured value on the slave side.
In this case, I can make it so that in OM=>NS the slave will take the value from the master, which will be 0, as OM doesn't have system_versioning_insert_history .
People
Sergei Golubchik
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1052.3999999761581,"ttfb":336.89999997615814,"pageVisibility":"visible","entityId":115601,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"804de4ca-26f3-407e-94a8-a08ec691e9d9","navigationType":0,"readyForUser":1163.3999999761581,"redirectCount":0,"resourceLoadedEnd":1200,"resourceLoadedStart":342.5,"resourceTiming":[{"duration":133.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":342.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":342.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":476.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":133.80000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":342.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":342.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":476.5,"responseStart":0,"secureConnectionStart":0},{"duration":163.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":342.89999997615814,"connectEnd":342.89999997615814,"connectStart":342.89999997615814,"domainLookupEnd":342.89999997615814,"domainLookupStart":342.89999997615814,"fetchStart":342.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":342.89999997615814,"responseEnd":506.5,"responseStart":506.5,"secureConnectionStart":342.89999997615814},{"duration":225.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":343.19999998807907,"connectEnd":343.19999998807907,"connectStart":343.19999998807907,"domainLookupEnd":343.19999998807907,"domainLookupStart":343.19999998807907,"fetchStart":343.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":343.19999998807907,"responseEnd":568.3999999761581,"responseStart":568.3999999761581,"secureConnectionStart":343.19999998807907},{"duration":229.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":343.30000001192093,"connectEnd":343.30000001192093,"connectStart":343.30000001192093,"domainLookupEnd":343.30000001192093,"domainLookupStart":343.30000001192093,"fetchStart":343.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":343.30000001192093,"responseEnd":573,"responseStart":573,"secureConnectionStart":343.30000001192093},{"duration":229.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":343.5999999642372,"connectEnd":343.5999999642372,"connectStart":343.5999999642372,"domainLookupEnd":343.5999999642372,"domainLookupStart":343.5999999642372,"fetchStart":343.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":343.5999999642372,"responseEnd":573.3999999761581,"responseStart":573.3999999761581,"secureConnectionStart":343.5999999642372},{"duration":230.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":343.69999998807907,"connectEnd":343.69999998807907,"connectStart":343.69999998807907,"domainLookupEnd":343.69999998807907,"domainLookupStart":343.69999998807907,"fetchStart":343.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":343.69999998807907,"responseEnd":574.1999999880791,"responseStart":574.1999999880791,"secureConnectionStart":343.69999998807907},{"duration":309.9000000357628,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":343.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":343.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":653.8000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":230.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":344,"connectEnd":344,"connectStart":344,"domainLookupEnd":344,"domainLookupStart":344,"fetchStart":344,"redirectEnd":0,"redirectStart":0,"requestStart":344,"responseEnd":574.6999999880791,"responseStart":574.5999999642372,"secureConnectionStart":344},{"duration":309.80000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":344.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":344.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":654,"responseStart":0,"secureConnectionStart":0},{"duration":230.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":344.30000001192093,"connectEnd":344.30000001192093,"connectStart":344.30000001192093,"domainLookupEnd":344.30000001192093,"domainLookupStart":344.30000001192093,"fetchStart":344.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":344.30000001192093,"responseEnd":575.1999999880791,"responseStart":575.1999999880791,"secureConnectionStart":344.30000001192093},{"duration":470.5999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":351.5,"connectEnd":351.5,"connectStart":351.5,"domainLookupEnd":351.5,"domainLookupStart":351.5,"fetchStart":351.5,"redirectEnd":0,"redirectStart":0,"requestStart":351.5,"responseEnd":822.0999999642372,"responseStart":822.0999999642372,"secureConnectionStart":351.5},{"duration":783.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":351.5999999642372,"connectEnd":351.5999999642372,"connectStart":351.5999999642372,"domainLookupEnd":351.5999999642372,"domainLookupStart":351.5999999642372,"fetchStart":351.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":351.5999999642372,"responseEnd":1135.5,"responseStart":1135.5,"secureConnectionStart":351.5999999642372},{"duration":155.19999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":667.3000000119209,"connectEnd":667.3000000119209,"connectStart":667.3000000119209,"domainLookupEnd":667.3000000119209,"domainLookupStart":667.3000000119209,"fetchStart":667.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":667.3000000119209,"responseEnd":822.5,"responseStart":822.5,"secureConnectionStart":667.3000000119209},{"duration":257.9000000357628,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":942.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":942.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1200,"responseStart":0,"secureConnectionStart":0},{"duration":312.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":943,"connectEnd":943,"connectStart":943,"domainLookupEnd":943,"domainLookupStart":943,"fetchStart":943,"redirectEnd":0,"redirectStart":0,"requestStart":943,"responseEnd":1255.3999999761581,"responseStart":1255.3999999761581,"secureConnectionStart":943},{"duration":317.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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","startTime":943.5,"connectEnd":943.5,"connectStart":943.5,"domainLookupEnd":943.5,"domainLookupStart":943.5,"fetchStart":943.5,"redirectEnd":0,"redirectStart":0,"requestStart":943.5,"responseEnd":1261.300000011921,"responseStart":1261.300000011921,"secureConnectionStart":943.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":167,"responseStart":337,"responseEnd":351,"domLoading":341,"domInteractive":1235,"domContentLoadedEventStart":1235,"domContentLoadedEventEnd":1288,"domComplete":1628,"loadEventStart":1628,"loadEventEnd":1628,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1215.800000011921},{"name":"bigPipe.sidebar-id.end","time":1216.5999999642372},{"name":"bigPipe.activity-panel-pipe-id.start","time":1216.800000011921},{"name":"bigPipe.activity-panel-pipe-id.end","time":1217.5999999642372},{"name":"activityTabFullyLoaded","time":1316.0999999642372}],"measures":[],"correlationId":"a768b0b2061082","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":17,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I can fix it. Normally, when in a version X.Y.Z we add a new setting, that's written to binlog, then when replicating NM=>NS, the slave will get its value from the master, and on OM=>NS, it'll use the actual configured value on the slave side.
In this case, I can make it so that in OM=>NS the slave will take the value from the master, which will be 0, as OM doesn't have system_versioning_insert_history.