Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Fix Version/s:
None
Component/s:
None
I'm trying to tweak the test case initially described in MDEV-4325 to make it work. As discussed in the comments (https://mariadb.atlassian.net/browse/MDEV-4325?focusedCommentId=30821&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-30821 ), I'm now setting master_gtid_pos='' after slave reset. It still does not seem to work:
[connection master]
RESET MASTER;
include/stop_slave.inc
RESET SLAVE ALL;
CHANGE MASTER TO master_host='127.0.0.1', master_port=16000, master_user='root', master_gtid_pos=auto;
include/start_slave.inc
CREATE TABLE t1 (i INT);
include/stop_slave.inc
DROP TABLE t1;
RESET SLAVE;
CHANGE MASTER TO master_gtid_pos='';
####################################################
# We have set master_gtid_pos to '', so it's
# expected to be empty now (and it is)
####################################################
SHOW ALL SLAVES STATUS;
Connection_name
Slave_SQL_State
Slave_IO_State
Master_Host 127.0.0.1
Master_User root
Master_Port 16000
Connect_Retry 1
Master_Log_File
Read_Master_Log_Pos 0
Relay_Log_File slave-relay-bin.000001
Relay_Log_Pos 4
Relay_Master_Log_File
Slave_IO_Running No
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 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 0
Relay_Log_Space 248
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 NULL
Master_SSL_Verify_Server_Cert No
Last_IO_Errno 0
Last_IO_Error
Last_SQL_Errno 0
Last_SQL_Error
Replicate_Ignore_Server_Ids
Master_Server_Id 1
Using_Gtid 1
Retried_transactions 0
Max_relay_log_size 1073741824
Executed_log_entries 16
Slave_received_heartbeats 0
Slave_heartbeat_period 60.000
Gtid_Pos
####################################################
# But it still claims we are using an invalid value
####################################################
include/start_slave.inc
SHOW SLAVE STATUS;
Slave_IO_State
Master_Host 127.0.0.1
Master_User root
Master_Port 16000
Connect_Retry 1
Master_Log_File
Read_Master_Log_Pos 0
Relay_Log_File slave-relay-bin.000001
Relay_Log_Pos 4
Relay_Master_Log_File
Slave_IO_Running No
Slave_SQL_Running Yes
Replicate_Do_DB
Replicate_Ignore_DB
Replicate_Do_Table
Replicate_Ignore_Table
Replicate_Wild_Do_Table
Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 0
Relay_Log_Space 248
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 NULL
Master_SSL_Verify_Server_Cert No
Last_IO_Errno 1236
Last_IO_Error Got fatal error 1236 from master when reading data from binary log: 'Error: connecting slave requested to start from GTID 0-2-2, which is not in the master's binlog'
Last_SQL_Errno 0
Last_SQL_Error
Replicate_Ignore_Server_Ids
Master_Server_Id 1
Using_Gtid 1
Test case:
--source include/master-slave.inc
--source include/have_xtradb.inc
--source include/have_binlog_format_mixed.inc
RESET MASTER;
--connection slave
--source include/stop_slave.inc
RESET SLAVE ALL ;
eval CHANGE MASTER TO master_host= '127.0.0.1' , master_port=$MASTER_MYPORT,
master_user= 'root' , master_gtid_pos=auto;
--source include/start_slave.inc
--connection master
CREATE TABLE t1 (i INT );
--save_master_pos
--sync_slave_with_master
--source include/stop_slave.inc
DROP TABLE t1;
RESET SLAVE;
# We can optionally delete the contents of the table ,
# it doesn 't help anyway
# DELETE FROM mysql.rpl_slave_state;
eval CHANGE MASTER TO master_gtid_pos=' ';
--echo ####################################################
--echo # We have set master_gtid_pos to ' ', so it' s
--echo # expected to be empty now (and it is)
--echo ####################################################
query_vertical SHOW ALL SLAVES STATUS;
--echo ####################################################
--echo # But it still claims we are using an invalid value
--echo ####################################################
--source include/start_slave.inc
--sleep 1
query_vertical SHOW SLAVE STATUS;
revision-id: knielsen@knielsen-hq.org-20130322102628-hxohewmbfyd1wig6
revno: 3538
branch-nick: 10.0-mdev26
relates to
MDEV-26
Global transaction ID
Closed
Transition
Time In Source Status
Execution Times
Open
In Progress
1d 8h 58m
1
In Progress
Closed
1m 4s
1
{"report":{"fcp":1035.2000000476837,"ttfb":176.90000009536743,"pageVisibility":"visible","entityId":23504,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"55b01888-2757-4490-a104-b2e34e7567da","navigationType":0,"readyForUser":1159.7000000476837,"redirectCount":0,"resourceLoadedEnd":1378.3000001907349,"resourceLoadedStart":185.20000004768372,"resourceTiming":[{"duration":153.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":185.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":338.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":276.5,"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":185.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":462,"responseStart":0,"secureConnectionStart":0},{"duration":285.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":185.60000014305115,"connectEnd":185.60000014305115,"connectStart":185.60000014305115,"domainLookupEnd":185.60000014305115,"domainLookupStart":185.60000014305115,"fetchStart":185.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":185.60000014305115,"responseEnd":471,"responseStart":471,"secureConnectionStart":185.60000014305115},{"duration":534.8999998569489,"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":185.60000014305115,"connectEnd":185.60000014305115,"connectStart":185.60000014305115,"domainLookupEnd":185.60000014305115,"domainLookupStart":185.60000014305115,"fetchStart":185.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":185.60000014305115,"responseEnd":720.5,"responseStart":720.5,"secureConnectionStart":185.60000014305115},{"duration":538.6999998092651,"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":185.80000019073486,"connectEnd":185.80000019073486,"connectStart":185.80000019073486,"domainLookupEnd":185.80000019073486,"domainLookupStart":185.80000019073486,"fetchStart":185.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":185.80000019073486,"responseEnd":724.5,"responseStart":724.5,"secureConnectionStart":185.80000019073486},{"duration":539.0999999046326,"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":185.90000009536743,"connectEnd":185.90000009536743,"connectStart":185.90000009536743,"domainLookupEnd":185.90000009536743,"domainLookupStart":185.90000009536743,"fetchStart":185.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":185.90000009536743,"responseEnd":725,"responseStart":725,"secureConnectionStart":185.90000009536743},{"duration":539.3000001907349,"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":186,"connectEnd":186,"connectStart":186,"domainLookupEnd":186,"domainLookupStart":186,"fetchStart":186,"redirectEnd":0,"redirectStart":0,"requestStart":186,"responseEnd":725.3000001907349,"responseStart":725.3000001907349,"secureConnectionStart":186},{"duration":539.7999999523163,"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":186.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":725.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":539.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":186.20000004768372,"connectEnd":186.20000004768372,"connectStart":186.20000004768372,"domainLookupEnd":186.20000004768372,"domainLookupStart":186.20000004768372,"fetchStart":186.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":186.20000004768372,"responseEnd":725.9000000953674,"responseStart":725.9000000953674,"secureConnectionStart":186.20000004768372},{"duration":539.8000001907349,"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":186.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":726.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":540.1000001430511,"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":186.5,"connectEnd":186.5,"connectStart":186.5,"domainLookupEnd":186.5,"domainLookupStart":186.5,"fetchStart":186.5,"redirectEnd":0,"redirectStart":0,"requestStart":186.5,"responseEnd":726.6000001430511,"responseStart":726.6000001430511,"secureConnectionStart":186.5},{"duration":633.7000000476837,"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":187.20000004768372,"connectEnd":187.20000004768372,"connectStart":187.20000004768372,"domainLookupEnd":187.20000004768372,"domainLookupStart":187.20000004768372,"fetchStart":187.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":187.20000004768372,"responseEnd":820.9000000953674,"responseStart":820.9000000953674,"secureConnectionStart":187.20000004768372},{"duration":1185.8999998569489,"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":187.30000019073486,"connectEnd":187.30000019073486,"connectStart":187.30000019073486,"domainLookupEnd":187.30000019073486,"domainLookupStart":187.30000019073486,"fetchStart":187.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":187.30000019073486,"responseEnd":1373.2000000476837,"responseStart":1373.2000000476837,"secureConnectionStart":187.30000019073486},{"duration":153.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":620.2000000476837,"connectEnd":620.2000000476837,"connectStart":620.2000000476837,"domainLookupEnd":620.2000000476837,"domainLookupStart":620.2000000476837,"fetchStart":620.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":620.2000000476837,"responseEnd":773.5,"responseStart":773.5,"secureConnectionStart":620.2000000476837},{"duration":601.6000001430511,"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":776.7000000476837,"connectEnd":776.7000000476837,"connectStart":776.7000000476837,"domainLookupEnd":776.7000000476837,"domainLookupStart":776.7000000476837,"fetchStart":776.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":776.7000000476837,"responseEnd":1378.3000001907349,"responseStart":1378.3000001907349,"secureConnectionStart":776.7000000476837},{"duration":365.2999999523163,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1028.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1028.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1393.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":21,"responseStart":177,"responseEnd":180,"domLoading":182,"domInteractive":1398,"domContentLoadedEventStart":1398,"domContentLoadedEventEnd":1445,"domComplete":1921,"loadEventStart":1921,"loadEventEnd":1922,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1375.1000001430511},{"name":"bigPipe.sidebar-id.end","time":1376},{"name":"bigPipe.activity-panel-pipe-id.start","time":1376.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1377.1000001430511},{"name":"activityTabFullyLoaded","time":1461.6000001430511}],"measures":[],"correlationId":"aabd11a30a1858","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":17,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}