Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Fix Version/s:
None
Component/s:
None
I run CHANGE MASTER ... master_gtid_pos=auto ;
start slave;
execute some statements on master;
wait till slave catches up with the master;
stop slave (both threads or IO only);
start slave again
=> the slave attempts to re-execute previous statements.
revision-id: knielsen@knielsen-hq.org-20130311151655-yc1i3z72v6c00pfz
revno: 3468
branch-nick: 10.0-mdev26
Test case:
--source include/master-slave.inc
--connection slave
STOP SLAVE;
--source include/wait_for_slave_to_stop.inc
RESET SLAVE ALL ;
--connection master
RESET MASTER;
--connection slave
eval CHANGE MASTER TO master_host= '127.0.0.1' , master_port=$MASTER_MYPORT, master_user= 'root' , master_gtid_pos=auto;
START SLAVE;
--source include/wait_for_slave_to_start.inc
--connection master
CREATE TABLE t1 (i INT );
INSERT INTO t1 VALUES (1);
--sync_slave_with_master
STOP SLAVE IO_THREAD;
--source include/wait_for_slave_io_to_stop.inc
START SLAVE IO_THREAD;
--source include/wait_for_slave_io_to_start.inc
--sync_with_master
Result:
=== SHOW SLAVE STATUS ===
---- 1. ----
Slave_IO_State Waiting for master to send event
Master_Host 127.0.0.1
Master_User root
Master_Port 16000
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 311
Relay_Log_File slave-relay-bin.000002
Relay_Log_Pos 599
Relay_Master_Log_File master-bin.000001
Slave_IO_Running Yes
Slave_SQL_Running No
Replicate_Do_DB
Replicate_Ignore_DB
Replicate_Do_Table
Replicate_Ignore_Table
Replicate_Wild_Do_Table
Replicate_Wild_Ignore_Table
Last_Errno 1050
Last_Error Error 'Table 't1' already exists' on query. Default database: 'test'. Query: 'CREATE TABLE t1 (i INT)'
Skip_Counter 0
Exec_Master_Log_Pos 311
Relay_Log_Space 1863
Until_Condition None
Until_Log_File
Until_Log_Pos 0
Master_SSL_Allowed No
Master_SSL_CA_File
Master_SSL_CA_Path
Master_SSL_Cert
Master_SSL_Cipher
Master_SSL_Key
Seconds_Behind_Master
Master_SSL_Verify_Server_Cert No
Last_IO_Errno 0
Last_IO_Error
Last_SQL_Errno 1050
Last_SQL_Error Error 'Table 't1' already exists' on query. Default database: 'test'. Query: 'CREATE TABLE t1 (i INT)'
Replicate_Ignore_Server_Ids
Master_Server_Id 1
Using_Gtid 1
=========================
relates to
MDEV-26
Global transaction ID
Closed
{"report":{"fcp":931.3999998569489,"ttfb":341.59999990463257,"pageVisibility":"visible","entityId":23247,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"cf054195-855a-4461-bc68-038b5b4bbb19","navigationType":0,"readyForUser":995.8999998569489,"redirectCount":0,"resourceLoadedEnd":999.2999999523163,"resourceLoadedStart":347,"resourceTiming":[{"duration":82.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":347,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":429.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":82.60000014305115,"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":347.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":347.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":430,"responseStart":0,"secureConnectionStart":0},{"duration":130.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","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":477.7000000476837,"responseStart":477.7000000476837,"secureConnectionStart":347.5},{"duration":190.59999990463257,"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":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":538.0999999046326,"responseStart":538.0999999046326,"secureConnectionStart":347.5},{"duration":193.5,"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":347.7000000476837,"connectEnd":347.7000000476837,"connectStart":347.7000000476837,"domainLookupEnd":347.7000000476837,"domainLookupStart":347.7000000476837,"fetchStart":347.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":347.7000000476837,"responseEnd":541.2000000476837,"responseStart":541.2000000476837,"secureConnectionStart":347.7000000476837},{"duration":194.09999990463257,"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":347.7999999523163,"connectEnd":347.7999999523163,"connectStart":347.7999999523163,"domainLookupEnd":347.7999999523163,"domainLookupStart":347.7999999523163,"fetchStart":347.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":347.7999999523163,"responseEnd":541.8999998569489,"responseStart":541.8999998569489,"secureConnectionStart":347.7999999523163},{"duration":194.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":347.89999985694885,"connectEnd":347.89999985694885,"connectStart":347.89999985694885,"domainLookupEnd":347.89999985694885,"domainLookupStart":347.89999985694885,"fetchStart":347.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":347.89999985694885,"responseEnd":542.3999998569489,"responseStart":542.3999998569489,"secureConnectionStart":347.89999985694885},{"duration":195,"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":348,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":348,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":543,"responseStart":0,"secureConnectionStart":0},{"duration":195.40000009536743,"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":348.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":348.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":543.5,"responseStart":0,"secureConnectionStart":0},{"duration":195,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":348.09999990463257,"connectEnd":348.09999990463257,"connectStart":348.09999990463257,"domainLookupEnd":348.09999990463257,"domainLookupStart":348.09999990463257,"fetchStart":348.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":348.09999990463257,"responseEnd":543.0999999046326,"responseStart":543.0999999046326,"secureConnectionStart":348.09999990463257},{"duration":195.40000009536743,"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":348.2999999523163,"connectEnd":348.2999999523163,"connectStart":348.2999999523163,"domainLookupEnd":348.2999999523163,"domainLookupStart":348.2999999523163,"fetchStart":348.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":348.2999999523163,"responseEnd":543.7000000476837,"responseStart":543.7000000476837,"secureConnectionStart":348.2999999523163},{"duration":345.7999999523163,"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":353.7999999523163,"connectEnd":353.7999999523163,"connectStart":353.7999999523163,"domainLookupEnd":353.7999999523163,"domainLookupStart":353.7999999523163,"fetchStart":353.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":353.7999999523163,"responseEnd":699.5999999046326,"responseStart":699.5,"secureConnectionStart":353.7999999523163},{"duration":485.7000000476837,"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":354.09999990463257,"connectEnd":354.09999990463257,"connectStart":354.09999990463257,"domainLookupEnd":354.09999990463257,"domainLookupStart":354.09999990463257,"fetchStart":354.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":354.09999990463257,"responseEnd":839.7999999523163,"responseStart":839.7999999523163,"secureConnectionStart":354.09999990463257},{"duration":136.60000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":684.5999999046326,"connectEnd":684.5999999046326,"connectStart":684.5999999046326,"domainLookupEnd":684.5999999046326,"domainLookupStart":684.5999999046326,"fetchStart":684.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":684.5999999046326,"responseEnd":821.2000000476837,"responseStart":821.2000000476837,"secureConnectionStart":684.5999999046326},{"duration":80.19999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":909.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":909.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":989.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":76.29999995231628,"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":913.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":913.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":989.5,"responseStart":0,"secureConnectionStart":0},{"duration":77.5,"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":913.8999998569489,"connectEnd":913.8999998569489,"connectStart":913.8999998569489,"domainLookupEnd":913.8999998569489,"domainLookupStart":913.8999998569489,"fetchStart":913.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":913.8999998569489,"responseEnd":991.3999998569489,"responseStart":991.3999998569489,"secureConnectionStart":913.8999998569489},{"duration":84.90000009536743,"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":914.3999998569489,"connectEnd":914.3999998569489,"connectStart":914.3999998569489,"domainLookupEnd":914.3999998569489,"domainLookupStart":914.3999998569489,"fetchStart":914.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":914.3999998569489,"responseEnd":999.2999999523163,"responseStart":999.2999999523163,"secureConnectionStart":914.3999998569489}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":216,"responseStart":341,"responseEnd":354,"domLoading":345,"domInteractive":1078,"domContentLoadedEventStart":1078,"domContentLoadedEventEnd":1120,"domComplete":1295,"loadEventStart":1295,"loadEventEnd":1297,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1047.7999999523163},{"name":"bigPipe.sidebar-id.end","time":1048.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1048.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1051},{"name":"activityTabFullyLoaded","time":1127.8999998569489}],"measures":[],"correlationId":"b01c8bc6da0d5f","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":68,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}