File: rpl_multi_source_channel_name_relay_log.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (82 lines) | stat: -rw-r--r-- 3,510 bytes parent folder | download
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
#########################################################################
# Verify:
#  Relay log file names are properly set for multisource replication
#  In this tests we test if relay log files per channel based
#  on --relay-log-index and --relay-log is properly set.
# 1. The slave is started with --relay-log=msr-relay
# 2. the slave is restarted with --relay-log-index=idx-msr-relay
# 3. the slave is restarted with --relay-log-index=idx-msr-relay.idx
#     and --relay-log=msr-relay.log
#########################################################################
include/master-slave.inc
Warnings:
Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
Note	####	Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
[connection master]
[connection slave]
CHANGE REPLICATION SOURCE TO SOURCE_HOST="localhost", SOURCE_PORT=10 FOR CHANNEL "channel1";
#
# Check that the names of relay log files per channel are properly set
#
FLUSH RELAY LOGS;
FLUSH RELAY LOGS FOR CHANNEL "channel1";
#
# RESET SLAVE ALL for next test;
#
include/rpl_stop_slaves.inc
Warnings:
Note	3084	Replication thread(s) for channel 'channel1' are already stopped.
RESET SLAVE ALL;
Warnings:
Warning	1287	'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
#
# 2. Shutdown server. Remove relay log files. Start server with
#     --relay-log-index
#
include/rpl_stop_server.inc [server_number=2]
include/rpl_start_server.inc [server_number=2 parameters: --relay-log-index=idx-msr-relay]
CHANGE REPLICATION SOURCE TO SOURCE_HOST="localhost", SOURCE_PORT=10 FOR CHANNEL "channel1";
#
# Check that the names of relay log files per channel are properly set
#
FLUSH RELAY LOGS;
FLUSH RELAY LOGS FOR CHANNEL "channel1";
#
# RESET SLAVE ALL cleaningup.
#
include/rpl_stop_slaves.inc
Warnings:
Note	3084	Replication thread(s) for channel 'channel1' are already stopped.
RESET SLAVE ALL;
Warnings:
Warning	1287	'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
#
# 3. Shutdown server. Remove relay log files. Start server with
#    --relay-log-index and --relay-log with extensions.
#    These extensions shall be stripped off
include/rpl_stop_server.inc [server_number=2]
include/rpl_start_server.inc [server_number=2 parameters: --relay-log-index=idx-msr-relay.index1 --relay-log=msr-relay.log1]
CHANGE REPLICATION SOURCE TO SOURCE_HOST="localhost", SOURCE_PORT=10 FOR CHANNEL "channel1";
#
# Check that the names of relay log files per channel are properly set
#
FLUSH RELAY LOGS;
FLUSH RELAY LOGS FOR CHANNEL "channel1";
#
# RESET SLAVE ALL cleaningup.
#
include/rpl_stop_slaves.inc
Warnings:
Note	3084	Replication thread(s) for channel 'channel1' are already stopped.
RESET SLAVE ALL;
Warnings:
Warning	1287	'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
#
# We have to reset the --relay-log and --relay-log-index options,
# so that in the  next test case if the server restarts there is no mismatch
# with the current options and the default option (i.e relay-log=slave-relay-bin)
#
CHANGE REPLICATION SOURCE TO SOURCE_HOST="127.0.0.1", SOURCE_PORT=MYPORT,
SOURCE_USER="root";
include/start_slave.inc
include/rpl_end.inc