summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/multi_source/simple.result
blob: 65c25b88e44e799a3e2ca4118cdde2895d511348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
connect  slave,127.0.0.1,root,,,$SERVER_MYPORT_3;
connect  master1,127.0.0.1,root,,,$SERVER_MYPORT_1;
connect  master2,127.0.0.1,root,,,$SERVER_MYPORT_2;
connection slave;
change master 'slave1' to master_port=MYPORT_1, master_host='127.0.0.1', master_user='root';
change master 'slave2' to master_port=MYPORT_2, master_host='127.0.0.1', master_user='root';
start slave 'slave1';
set default_master_connection = 'slave1';
include/wait_for_slave_to_start.inc
set default_master_connection = 'slave2';
start all slaves;
Warnings:
Note	1937	SLAVE 'slave2' started
include/wait_for_slave_to_start.inc
set default_master_connection = '';
connection master1;
connection slave;
connection master2;
connection slave;
show all slaves status;
Connection_name	slave1
Slave_SQL_State	Slave has read all relay log; waiting for more updates
Slave_IO_State	Waiting for master to send event
Master_Host	127.0.0.1
Master_User	root
Master_Port	MYPORT_1
Connect_Retry	60
Master_Log_File	master-bin.000001
Read_Master_Log_Pos	<read_master_log_pos>
Relay_Log_File	mysqld-relay-bin-slave1.000002
Relay_Log_Pos	<relay_log_pos>
Relay_Master_Log_File	master-bin.000001
Slave_IO_Running	Yes
Slave_SQL_Running	Yes
Replicate_Rewrite_DB	
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	<read_master_log_pos>
Relay_Log_Space	<relay_log_space1>
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	0
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
Master_SSL_Crl	
Master_SSL_Crlpath	
Using_Gtid	Slave_Pos
Gtid_IO_Pos	
Replicate_Do_Domain_Ids	
Replicate_Ignore_Domain_Ids	
Parallel_Mode	optimistic
SQL_Delay	0
SQL_Remaining_Delay	NULL
Slave_SQL_Running_State	Slave has read all relay log; waiting for more updates
Slave_DDL_Groups	0
Slave_Non_Transactional_Groups	0
Slave_Transactional_Groups	0
Retried_transactions	0
Max_relay_log_size	1073741824
Executed_log_entries	7
Slave_received_heartbeats	0
Slave_heartbeat_period	60.000
Gtid_Slave_Pos	
Connection_name	slave2
Slave_SQL_State	Slave has read all relay log; waiting for more updates
Slave_IO_State	Waiting for master to send event
Master_Host	127.0.0.1
Master_User	root
Master_Port	MYPORT_2
Connect_Retry	60
Master_Log_File	master-bin.000001
Read_Master_Log_Pos	<read_master_log_pos>
Relay_Log_File	mysqld-relay-bin-slave2.000002
Relay_Log_Pos	<relay_log_pos>
Relay_Master_Log_File	master-bin.000001
Slave_IO_Running	Yes
Slave_SQL_Running	Yes
Replicate_Rewrite_DB	
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	<read_master_log_pos>
Relay_Log_Space	<relay_log_space1>
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	0
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	2
Master_SSL_Crl	
Master_SSL_Crlpath	
Using_Gtid	Slave_Pos
Gtid_IO_Pos	
Replicate_Do_Domain_Ids	
Replicate_Ignore_Domain_Ids	
Parallel_Mode	optimistic
SQL_Delay	0
SQL_Remaining_Delay	NULL
Slave_SQL_Running_State	Slave has read all relay log; waiting for more updates
Slave_DDL_Groups	0
Slave_Non_Transactional_Groups	0
Slave_Transactional_Groups	0
Retried_transactions	0
Max_relay_log_size	1073741824
Executed_log_entries	7
Slave_received_heartbeats	0
Slave_heartbeat_period	60.000
Gtid_Slave_Pos	
#
# MDEV:16437: merge 5.7 P_S replication instrumentation and tables
#
select * from performance_schema.replication_connection_configuration;
CHANNEL_NAME	slave2
HOST	127.0.0.1
PORT	#
USER	root
USING_GTID	SLAVE_POS
SSL_ALLOWED	NO
SSL_CA_FILE	
SSL_CA_PATH	
SSL_CERTIFICATE	
SSL_CIPHER	
SSL_KEY	
SSL_VERIFY_SERVER_CERTIFICATE	NO
SSL_CRL_FILE	
SSL_CRL_PATH	
CONNECTION_RETRY_INTERVAL	60
CONNECTION_RETRY_COUNT	100000
HEARTBEAT_INTERVAL	60.000
IGNORE_SERVER_IDS	
REPL_DO_DOMAIN_IDS	
REPL_IGNORE_DOMAIN_IDS	
CHANNEL_NAME	slave1
HOST	127.0.0.1
PORT	#
USER	root
USING_GTID	SLAVE_POS
SSL_ALLOWED	NO
SSL_CA_FILE	
SSL_CA_PATH	
SSL_CERTIFICATE	
SSL_CIPHER	
SSL_KEY	
SSL_VERIFY_SERVER_CERTIFICATE	NO
SSL_CRL_FILE	
SSL_CRL_PATH	
CONNECTION_RETRY_INTERVAL	60
CONNECTION_RETRY_COUNT	100000
HEARTBEAT_INTERVAL	60.000
IGNORE_SERVER_IDS	
REPL_DO_DOMAIN_IDS	
REPL_IGNORE_DOMAIN_IDS	
start all slaves;
#
# MDEV:16437: merge 5.7 P_S replication instrumentation and tables
#
select * from performance_schema.replication_applier_status_by_coordinator;
CHANNEL_NAME	slave2
THREAD_ID	#
SERVICE_STATE	ON
LAST_ERROR_NUMBER	0
LAST_ERROR_MESSAGE	
LAST_ERROR_TIMESTAMP	0000-00-00 00:00:00
LAST_SEEN_TRANSACTION	
LAST_TRANS_RETRY_COUNT	0
CHANNEL_NAME	slave1
THREAD_ID	#
SERVICE_STATE	ON
LAST_ERROR_NUMBER	0
LAST_ERROR_MESSAGE	
LAST_ERROR_TIMESTAMP	0000-00-00 00:00:00
LAST_SEEN_TRANSACTION	
LAST_TRANS_RETRY_COUNT	0
stop slave 'slave1';
show slave 'slave1' status;
Slave_IO_State	
Master_Host	127.0.0.1
Master_User	root
Master_Port	MYPORT_1
Connect_Retry	60
Master_Log_File	master-bin.000001
Read_Master_Log_Pos	<read_master_log_pos>
Relay_Log_File	mysqld-relay-bin-slave1.000002
Relay_Log_Pos	<relay_log_pos>
Relay_Master_Log_File	master-bin.000001
Slave_IO_Running	No
Slave_SQL_Running	No
Replicate_Rewrite_DB	
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	<read_master_log_pos>
Relay_Log_Space	<relay_log_space1>
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
Master_SSL_Crl	
Master_SSL_Crlpath	
Using_Gtid	Slave_Pos
Gtid_IO_Pos	
Replicate_Do_Domain_Ids	
Replicate_Ignore_Domain_Ids	
Parallel_Mode	optimistic
SQL_Delay	0
SQL_Remaining_Delay	NULL
Slave_SQL_Running_State	
Slave_DDL_Groups	0
Slave_Non_Transactional_Groups	0
Slave_Transactional_Groups	0
reset slave 'slave1';
show all slaves status;
Connection_name	slave1
Slave_SQL_State	
Slave_IO_State	
Master_Host	127.0.0.1
Master_User	root
Master_Port	MYPORT_1
Connect_Retry	60
Master_Log_File	
Read_Master_Log_Pos	4
Relay_Log_File	
Relay_Log_Pos	<relay_log_pos>
Relay_Master_Log_File	
Slave_IO_Running	No
Slave_SQL_Running	No
Replicate_Rewrite_DB	
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	<relay_log_space1>
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
Master_SSL_Crl	
Master_SSL_Crlpath	
Using_Gtid	Slave_Pos
Gtid_IO_Pos	
Replicate_Do_Domain_Ids	
Replicate_Ignore_Domain_Ids	
Parallel_Mode	optimistic
SQL_Delay	0
SQL_Remaining_Delay	NULL
Slave_SQL_Running_State	
Slave_DDL_Groups	0
Slave_Non_Transactional_Groups	0
Slave_Transactional_Groups	0
Retried_transactions	0
Max_relay_log_size	1073741824
Executed_log_entries	7
Slave_received_heartbeats	0
Slave_heartbeat_period	60.000
Gtid_Slave_Pos	
Connection_name	slave2
Slave_SQL_State	Slave has read all relay log; waiting for more updates
Slave_IO_State	Waiting for master to send event
Master_Host	127.0.0.1
Master_User	root
Master_Port	MYPORT_2
Connect_Retry	60
Master_Log_File	master-bin.000001
Read_Master_Log_Pos	<read_master_log_pos>
Relay_Log_File	mysqld-relay-bin-slave2.000002
Relay_Log_Pos	<relay_log_pos>
Relay_Master_Log_File	master-bin.000001
Slave_IO_Running	Yes
Slave_SQL_Running	Yes
Replicate_Rewrite_DB	
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	<read_master_log_pos>
Relay_Log_Space	<relay_log_space1>
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	0
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	2
Master_SSL_Crl	
Master_SSL_Crlpath	
Using_Gtid	Slave_Pos
Gtid_IO_Pos	
Replicate_Do_Domain_Ids	
Replicate_Ignore_Domain_Ids	
Parallel_Mode	optimistic
SQL_Delay	0
SQL_Remaining_Delay	NULL
Slave_SQL_Running_State	Slave has read all relay log; waiting for more updates
Slave_DDL_Groups	0
Slave_Non_Transactional_Groups	0
Slave_Transactional_Groups	0
Retried_transactions	0
Max_relay_log_size	1073741824
Executed_log_entries	7
Slave_received_heartbeats	0
Slave_heartbeat_period	60.000
Gtid_Slave_Pos	
reset slave 'slave1' all;
show all slaves status;
Connection_name	slave2
Slave_SQL_State	Slave has read all relay log; waiting for more updates
Slave_IO_State	Waiting for master to send event
Master_Host	127.0.0.1
Master_User	root
Master_Port	MYPORT_2
Connect_Retry	60
Master_Log_File	master-bin.000001
Read_Master_Log_Pos	<read_master_log_pos>
Relay_Log_File	mysqld-relay-bin-slave2.000002
Relay_Log_Pos	<relay_log_pos>
Relay_Master_Log_File	master-bin.000001
Slave_IO_Running	Yes
Slave_SQL_Running	Yes
Replicate_Rewrite_DB	
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	<read_master_log_pos>
Relay_Log_Space	<relay_log_space1>
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	0
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	2
Master_SSL_Crl	
Master_SSL_Crlpath	
Using_Gtid	Slave_Pos
Gtid_IO_Pos	
Replicate_Do_Domain_Ids	
Replicate_Ignore_Domain_Ids	
Parallel_Mode	optimistic
SQL_Delay	0
SQL_Remaining_Delay	NULL
Slave_SQL_Running_State	Slave has read all relay log; waiting for more updates
Slave_DDL_Groups	0
Slave_Non_Transactional_Groups	0
Slave_Transactional_Groups	0
Retried_transactions	0
Max_relay_log_size	1073741824
Executed_log_entries	7
Slave_received_heartbeats	0
Slave_heartbeat_period	60.000
Gtid_Slave_Pos	
stop all slaves;
Warnings:
Note	1938	SLAVE 'slave2' stopped
show all slaves status;
Connection_name	slave2
Slave_SQL_State	
Slave_IO_State	
Master_Host	127.0.0.1
Master_User	root
Master_Port	MYPORT_2
Connect_Retry	60
Master_Log_File	master-bin.000001
Read_Master_Log_Pos	<read_master_log_pos>
Relay_Log_File	mysqld-relay-bin-slave2.000002
Relay_Log_Pos	<relay_log_pos>
Relay_Master_Log_File	master-bin.000001
Slave_IO_Running	No
Slave_SQL_Running	No
Replicate_Rewrite_DB	
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	<read_master_log_pos>
Relay_Log_Space	<relay_log_space1>
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	2
Master_SSL_Crl	
Master_SSL_Crlpath	
Using_Gtid	Slave_Pos
Gtid_IO_Pos	
Replicate_Do_Domain_Ids	
Replicate_Ignore_Domain_Ids	
Parallel_Mode	optimistic
SQL_Delay	0
SQL_Remaining_Delay	NULL
Slave_SQL_Running_State	
Slave_DDL_Groups	0
Slave_Non_Transactional_Groups	0
Slave_Transactional_Groups	0
Retried_transactions	0
Max_relay_log_size	1073741824
Executed_log_entries	7
Slave_received_heartbeats	0
Slave_heartbeat_period	60.000
Gtid_Slave_Pos	
stop all slaves;
include/reset_master_slave.inc
disconnect slave;
connection master1;
include/reset_master_slave.inc
disconnect master1;
connection master2;
include/reset_master_slave.inc
disconnect master2;