~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/t/rpl_flushlog_loop.test

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2013-12-22 10:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20131222102705-mndw7s12mz0szrcn
Tags: upstream-5.5.32
Import upstream version 5.5.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Testing if "flush logs" command bouncing resulting in logs created in a loop 
 
2
# in case of bi-directional replication
 
3
-- source include/master-slave.inc
 
4
 
 
5
#
 
6
#  Start replication master -> slave 
 
7
#
 
8
connection slave;
 
9
--disable_warnings
 
10
stop slave;
 
11
--enable_warnings
 
12
--replace_result $MASTER_MYPORT MASTER_PORT
 
13
eval change master to master_host='127.0.0.1',master_user='root',
 
14
 master_password='',master_port=$MASTER_MYPORT;
 
15
start slave;
 
16
 
 
17
#
 
18
#  Start replication slave -> master
 
19
#
 
20
connection master;
 
21
--disable_warnings
 
22
stop slave;
 
23
--enable_warnings
 
24
--replace_result $SLAVE_MYPORT SLAVE_PORT
 
25
eval change master to master_host='127.0.0.1',master_user='root',
 
26
 master_password='',master_port=$SLAVE_MYPORT;
 
27
start slave;
 
28
 
 
29
#
 
30
#  Wait for start of slave IO and SQL threads
 
31
#
 
32
let $result_pattern= '%127.0.0.1%root%slave-bin.000001%slave-bin.000001%Yes%Yes%0%0%None%';
 
33
-- source $MYSQL_TEST_DIR/suite/engines/funcs/t/wait_slave_status.inc
 
34
 
 
35
#
 
36
#  Flush logs of slave
 
37
#
 
38
flush logs;
 
39
sleep 5;
 
40
 
 
41
#
 
42
#  Show status of slave
 
43
#
 
44
--replace_result $SLAVE_MYPORT SLAVE_PORT
 
45
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
 
46
--vertical_results
 
47
SHOW SLAVE STATUS;
 
48
STOP SLAVE;