| 1 |
# |
| 2 |
# Start of 10.2 tests |
| 3 |
# |
| 4 |
# |
| 5 |
# MDEV-21037 mariabackup does not detect multi-source replication slave |
| 6 |
# |
| 7 |
SELECT @@global.gtid_slave_pos; |
| 8 |
@@global.gtid_slave_pos |
| 9 |
|
| 10 |
|
| 11 |
# Without any masters the file mariadb_backup_slave_info is not created |
| 12 |
line |
| 13 |
[00] YYYY-MM-DD hh:mm:ss Failed to get master binlog coordinates from SHOW SLAVE STATUS.This means that the server is not a replication slave. Ignoring the --slave-info option |
| 14 |
|
| 15 |
CHANGE MASTER TO MASTER_HOST='localhost', MASTER_PORT=10000; |
| 16 |
lineno line |
| 17 |
1 CHANGE MASTER TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; |
| 18 |
line |
| 19 |
[00] YYYY-MM-DD hh:mm:ss MySQL slave binlog position: master '' filename '' position '0' |
| 20 |
|
| 21 |
CHANGE MASTER 'master2' TO MASTER_HOST='localhost', MASTER_PORT=10002; |
| 22 |
lineno line |
| 23 |
1 CHANGE MASTER TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; |
| 24 |
2 CHANGE MASTER 'master2' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; |
| 25 |
line |
| 26 |
[00] YYYY-MM-DD hh:mm:ss MySQL slave binlog position: master '' filename '' position '0'; master 'master2' filename '' position '0' |
| 27 |
|
| 28 |
SET GLOBAL gtid_slave_pos='1-1-1,2-2-2'; |
| 29 |
CHANGE MASTER 'master3' TO MASTER_HOST='localhost', MASTER_PORT=10003, MASTER_USE_GTID=slave_pos; |
| 30 |
CHANGE MASTER 'master4' TO MASTER_HOST='localhost', MASTER_PORT=10004, MASTER_USE_GTID=no; |
| 31 |
CHANGE MASTER 'master5' TO MASTER_HOST='localhost', MASTER_PORT=10005, MASTER_USE_GTID=slave_pos; |
| 32 |
lineno line |
| 33 |
1 SET GLOBAL gtid_slave_pos = '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; |
| 34 |
2 CHANGE MASTER TO master_use_gtid = slave_pos; |
| 35 |
3 CHANGE MASTER 'master2' TO master_use_gtid = slave_pos; |
| 36 |
4 CHANGE MASTER 'master3' TO master_use_gtid = slave_pos; |
| 37 |
5 CHANGE MASTER 'master4' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; |
| 38 |
6 CHANGE MASTER 'master5' TO master_use_gtid = slave_pos; |
| 39 |
line |
| 40 |
[00] YYYY-MM-DD hh:mm:ss MySQL slave binlog position: gtid_slave_pos '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; master '' master_use_gtid = slave_pos; master 'master2' master_use_gtid = slave_pos; master 'master3' master_use_gtid = slave_pos; master 'master4' filename '' position '0'; master 'master5' master_use_gtid = slave_pos |
| 41 |
|
| 42 |
CHANGE MASTER TO MASTER_HOST='localhost', MASTER_PORT=10000, MASTER_USE_GTID=slave_pos; |
| 43 |
lineno line |
| 44 |
1 SET GLOBAL gtid_slave_pos = '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; |
| 45 |
2 CHANGE MASTER TO master_use_gtid = slave_pos; |
| 46 |
3 CHANGE MASTER 'master2' TO master_use_gtid = slave_pos; |
| 47 |
4 CHANGE MASTER 'master3' TO master_use_gtid = slave_pos; |
| 48 |
5 CHANGE MASTER 'master4' TO MASTER_LOG_FILE='', MASTER_LOG_POS=<NUM>; |
| 49 |
6 CHANGE MASTER 'master5' TO master_use_gtid = slave_pos; |
| 50 |
line |
| 51 |
[00] YYYY-MM-DD hh:mm:ss MySQL slave binlog position: gtid_slave_pos '<NUM-NUM-NUM>,<NUM-NUM-NUM>'; master '' master_use_gtid = slave_pos; master 'master2' master_use_gtid = slave_pos; master 'master3' master_use_gtid = slave_pos; master 'master4' filename '' position '0'; master 'master5' master_use_gtid = slave_pos |
| 52 |
RESET SLAVE ALL; |
| 53 |
RESET SLAVE 'master2' ALL; |
| 54 |
RESET SLAVE 'master3' ALL; |
| 55 |
RESET SLAVE 'master4' ALL; |
| 56 |
Warnings: |
| 57 |
Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'No' to 'Slave_Pos' |
| 58 |
RESET SLAVE 'master5' ALL; |
| 59 |
# |
| 60 |
# End of 10.2 tests |
| 61 |
# |