Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.5
When converting a table (test.s3_table) from S3 to another engine, the following will be logged to the binary log:
DROP TABLE IF EXISTS test.t1;
CREATE OR REPLACE TABLE test.t1 (full create of the result table) ENGINE=new_engine
INSERT rows to test.t1 in binary-row-log-format
The bug is that the above statements are logged one by one to the binary log.
This means that a fast slave configured to use the same S3 storage as the master, would be able to read the DROP and CREATE from the binary log before the master has finished the ALTER TABLE. In this case the slave will ignore the DROP (as it's on a S3 table) but it will break on CREATE as the table is still in S3 and the CREATE can't be completed. (The REPLACE will be ignored by the slave as the table is in S3)
The fix is to ensure that all the above statements is written to binary log after the table has been deleted from S3.
There are no comments yet on this issue.
{"report":{"fcp":902.7000000476837,"ttfb":194.30000019073486,"pageVisibility":"visible","entityId":88450,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"fc8e157c-634b-4919-9e3e-f526f7163fa0","navigationType":0,"readyForUser":990.4000000953674,"redirectCount":0,"resourceLoadedEnd":801.3000001907349,"resourceLoadedStart":200.70000004768372,"resourceTiming":[{"duration":210.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":200.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":200.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":411.5,"responseStart":0,"secureConnectionStart":0},{"duration":210.70000004768372,"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":201.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":411.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":219.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":201.20000004768372,"connectEnd":201.20000004768372,"connectStart":201.20000004768372,"domainLookupEnd":201.20000004768372,"domainLookupStart":201.20000004768372,"fetchStart":201.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":201.20000004768372,"responseEnd":420.7000000476837,"responseStart":420.7000000476837,"secureConnectionStart":201.20000004768372},{"duration":265.2000000476837,"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":201.40000009536743,"connectEnd":201.40000009536743,"connectStart":201.40000009536743,"domainLookupEnd":201.40000009536743,"domainLookupStart":201.40000009536743,"fetchStart":201.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":201.40000009536743,"responseEnd":466.60000014305115,"responseStart":466.5,"secureConnectionStart":201.40000009536743},{"duration":268.7999999523163,"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":201.60000014305115,"connectEnd":201.60000014305115,"connectStart":201.60000014305115,"domainLookupEnd":201.60000014305115,"domainLookupStart":201.60000014305115,"fetchStart":201.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":201.60000014305115,"responseEnd":470.40000009536743,"responseStart":470.40000009536743,"secureConnectionStart":201.60000014305115},{"duration":269,"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":201.90000009536743,"connectEnd":201.90000009536743,"connectStart":201.90000009536743,"domainLookupEnd":201.90000009536743,"domainLookupStart":201.90000009536743,"fetchStart":201.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":201.90000009536743,"responseEnd":470.90000009536743,"responseStart":470.90000009536743,"secureConnectionStart":201.90000009536743},{"duration":269.30000019073486,"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":202,"connectEnd":202,"connectStart":202,"domainLookupEnd":202,"domainLookupStart":202,"fetchStart":202,"redirectEnd":0,"redirectStart":0,"requestStart":202,"responseEnd":471.30000019073486,"responseStart":471.30000019073486,"secureConnectionStart":202},{"duration":361.69999980926514,"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":202.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":202.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":564,"responseStart":0,"secureConnectionStart":0},{"duration":269.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":202.40000009536743,"connectEnd":202.40000009536743,"connectStart":202.40000009536743,"domainLookupEnd":202.40000009536743,"domainLookupStart":202.40000009536743,"fetchStart":202.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":202.40000009536743,"responseEnd":471.80000019073486,"responseStart":471.80000019073486,"secureConnectionStart":202.40000009536743},{"duration":361.59999990463257,"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":202.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":202.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":564.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":269.59999990463257,"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":202.80000019073486,"connectEnd":202.80000019073486,"connectStart":202.80000019073486,"domainLookupEnd":202.80000019073486,"domainLookupStart":202.80000019073486,"fetchStart":202.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":202.80000019073486,"responseEnd":472.40000009536743,"responseStart":472.40000009536743,"secureConnectionStart":202.80000019073486},{"duration":565.9000000953674,"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":203.70000004768372,"connectEnd":203.70000004768372,"connectStart":203.70000004768372,"domainLookupEnd":203.70000004768372,"domainLookupStart":203.70000004768372,"fetchStart":203.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":203.70000004768372,"responseEnd":769.6000001430511,"responseStart":769.6000001430511,"secureConnectionStart":203.70000004768372},{"duration":597.5,"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":203.80000019073486,"connectEnd":203.80000019073486,"connectStart":203.80000019073486,"domainLookupEnd":203.80000019073486,"domainLookupStart":203.80000019073486,"fetchStart":203.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":203.80000019073486,"responseEnd":801.3000001907349,"responseStart":801.3000001907349,"secureConnectionStart":203.80000019073486},{"duration":172.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":574.9000000953674,"connectEnd":574.9000000953674,"connectStart":574.9000000953674,"domainLookupEnd":574.9000000953674,"domainLookupStart":574.9000000953674,"fetchStart":574.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":574.9000000953674,"responseEnd":747.6000001430511,"responseStart":747.6000001430511,"secureConnectionStart":574.9000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":48,"responseStart":194,"responseEnd":197,"domLoading":198,"domInteractive":1039,"domContentLoadedEventStart":1039,"domContentLoadedEventEnd":1082,"domComplete":1530,"loadEventStart":1530,"loadEventEnd":1531,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1021.1000001430511},{"name":"bigPipe.sidebar-id.end","time":1021.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1022},{"name":"bigPipe.activity-panel-pipe-id.end","time":1022.5},{"name":"activityTabFullyLoaded","time":1091.2000000476837}],"measures":[],"correlationId":"2a1fff6df131e1","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":88,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}