Merge lp:~sergei.glushchenko/percona-server/5.6-ST39577-ps-bug1070255 into lp:percona-server/5.6

Proposed by Sergei Glushchenko
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 563
Proposed branch: lp:~sergei.glushchenko/percona-server/5.6-ST39577-ps-bug1070255
Merge into: lp:percona-server/5.6
Diff against target: 98 lines (+89/-0)
2 files modified
mysql-test/suite/rpl/r/rpl_percona_bug1070255.result (+38/-0)
mysql-test/suite/rpl/t/rpl_percona_bug1070255.test (+51/-0)
To merge this branch: bzr merge lp:~sergei.glushchenko/percona-server/5.6-ST39577-ps-bug1070255
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+211280@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'mysql-test/suite/rpl/r/rpl_percona_bug1070255.result'
--- mysql-test/suite/rpl/r/rpl_percona_bug1070255.result 1970-01-01 00:00:00 +0000
+++ mysql-test/suite/rpl/r/rpl_percona_bug1070255.result 2014-03-17 11:03:19 +0000
@@ -0,0 +1,38 @@
1include/master-slave.inc
2Warnings:
3Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
5[connection master]
6set global DEBUG='+d,dbug_table_map_id_500';
7CREATE TABLE t2 (a INT PRIMARY KEY, b VARCHAR(20));
8INSERT INTO t2 VALUES(1, '1');
9set global DEBUG='+d,dbug_table_map_id_4B_UINT_MAX+501';
10CREATE TABLE t3 (a INT PRIMARY KEY, b VARCHAR(20));
11INSERT INTO t3 VALUES(1, '1');
12set global DEBUG='+d,dbug_table_map_id_6B_UINT_MAX';
13CREATE TABLE t4 (a INT PRIMARY KEY, b VARCHAR(20));
14INSERT INTO t4 VALUES(1, '1');
15UPDATE t2, t3, t4 SET t2.b='tt2', t3.b='tt3', t4.b='tt4' WHERE t2.a=t3.a and t2.a=t4.a;
16SELECT * FROM t2;
17a b
181 tt2
19SELECT * FROM t3;
20a b
211 tt3
22SELECT * FROM t4;
23a b
241 tt4
25DELETE FROM t2;
26DELETE FROM t3;
27DELETE FROM t4;
28SELECT * FROM t2;
29a b
30SELECT * FROM t3;
31a b
32SELECT * FROM t4;
33a b
34DROP TABLE t2;
35DROP TABLE t3;
36DROP TABLE t4;
37set global DEBUG='';
38include/rpl_end.inc
039
=== added file 'mysql-test/suite/rpl/t/rpl_percona_bug1070255.test'
--- mysql-test/suite/rpl/t/rpl_percona_bug1070255.test 1970-01-01 00:00:00 +0000
+++ mysql-test/suite/rpl/t/rpl_percona_bug1070255.test 2014-03-17 11:03:19 +0000
@@ -0,0 +1,51 @@
1#
2# Bug 1070255: overflow caused replication sql thread failed to execute events
3#
4
5source include/have_debug.inc;
6source include/have_binlog_format_row.inc;
7source include/master-slave.inc;
8
9connection master;
10
11set global DEBUG='+d,dbug_table_map_id_500';
12CREATE TABLE t2 (a INT PRIMARY KEY, b VARCHAR(20));
13INSERT INTO t2 VALUES(1, '1');
14
15set global DEBUG='+d,dbug_table_map_id_4B_UINT_MAX+501';
16CREATE TABLE t3 (a INT PRIMARY KEY, b VARCHAR(20));
17INSERT INTO t3 VALUES(1, '1');
18
19set global DEBUG='+d,dbug_table_map_id_6B_UINT_MAX';
20CREATE TABLE t4 (a INT PRIMARY KEY, b VARCHAR(20));
21INSERT INTO t4 VALUES(1, '1');
22
23UPDATE t2, t3, t4 SET t2.b='tt2', t3.b='tt3', t4.b='tt4' WHERE t2.a=t3.a and t2.a=t4.a;
24
25sync_slave_with_master;
26
27SELECT * FROM t2;
28SELECT * FROM t3;
29SELECT * FROM t4;
30
31connection master;
32
33DELETE FROM t2;
34DELETE FROM t3;
35DELETE FROM t4;
36
37sync_slave_with_master;
38
39SELECT * FROM t2;
40SELECT * FROM t3;
41SELECT * FROM t4;
42
43connection master;
44
45DROP TABLE t2;
46DROP TABLE t3;
47DROP TABLE t4;
48
49set global DEBUG='';
50
51--source include/rpl_end.inc

Subscribers

People subscribed via source and target branches