File: rpl_fde_write.test

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 (63 lines) | stat: -rw-r--r-- 2,021 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
# ==== Purpose ====
#
# Tests the statement based replication of tables in a cross version setup
# where the master is a 5.7 server and slave is a 8.0 server, and verify
# that there is no crash at the time of FLUSH LOGS on slave side.
#
# ==== Implementation ====
#
# Start a master server on 8.0
# Copy the binary log file and index of a 5.7 master server to the datadir of 8.0 master server
# Start the slave on a 8.0 server
# Execute Flush logs command on the slave
# Without the fix the Flush Logs command will trigger an ASAN failure
#
# ==== References ====
#
# Bug#29417234:CONTRIBUTION BY FACEBOOK: FIX WRITING FORMAT DESCRIPTION EVENT
#

--source include/have_binlog_format_statement.inc
--let $rpl_skip_start_slave= 1
--source include/master-slave.inc

--let $MYSQLD_MASTER_DATADIR= `select @@datadir`
RESET MASTER;
--let $is_windows = `SELECT CONVERT(@@VERSION_COMPILE_OS USING latin1) IN ('Win32', 'Win64', 'Windows')`

# Stop the master
--let $rpl_server_number= 1
--source include/rpl_stop_server.inc

# clear master datadir
--remove_file $MYSQLD_MASTER_DATADIR/master-bin.000001
--remove_file $MYSQLD_MASTER_DATADIR/master-bin.index

# on Win* platforms path separator is backslash
if ($is_windows)
{
    --copy_file std_data/slave-relay-bin-win.index $MYSQLD_MASTER_DATADIR/master-bin.index
}
if (!$is_windows)
{
    --copy_file std_data/slave-relay-bin.index $MYSQLD_MASTER_DATADIR/master-bin.index
}

--copy_file std_data/slave-relay-bin.000001 $MYSQLD_MASTER_DATADIR/master-bin.000001

# Start the master
--source include/rpl_start_server.inc

--source include/rpl_connection_slave.inc
CALL mtr.add_suppression("The replica coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
CALL mtr.add_suppression("Got fatal error 1236 from source when reading data from binary log:");
START SLAVE;
let $wait_binlog_event= DROP;
--source include/wait_for_binlog_event.inc

FLUSH LOGS;
STOP SLAVE;
RESET SLAVE;

--let $rpl_only_running_threads= 1
--source include/rpl_end.inc