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
1=== added file 'mysql-test/suite/rpl/r/rpl_percona_bug1070255.result'
2--- mysql-test/suite/rpl/r/rpl_percona_bug1070255.result 1970-01-01 00:00:00 +0000
3+++ mysql-test/suite/rpl/r/rpl_percona_bug1070255.result 2014-03-17 11:03:19 +0000
4@@ -0,0 +1,38 @@
5+include/master-slave.inc
6+Warnings:
7+Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
8+Note #### 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.
9+[connection master]
10+set global DEBUG='+d,dbug_table_map_id_500';
11+CREATE TABLE t2 (a INT PRIMARY KEY, b VARCHAR(20));
12+INSERT INTO t2 VALUES(1, '1');
13+set global DEBUG='+d,dbug_table_map_id_4B_UINT_MAX+501';
14+CREATE TABLE t3 (a INT PRIMARY KEY, b VARCHAR(20));
15+INSERT INTO t3 VALUES(1, '1');
16+set global DEBUG='+d,dbug_table_map_id_6B_UINT_MAX';
17+CREATE TABLE t4 (a INT PRIMARY KEY, b VARCHAR(20));
18+INSERT INTO t4 VALUES(1, '1');
19+UPDATE t2, t3, t4 SET t2.b='tt2', t3.b='tt3', t4.b='tt4' WHERE t2.a=t3.a and t2.a=t4.a;
20+SELECT * FROM t2;
21+a b
22+1 tt2
23+SELECT * FROM t3;
24+a b
25+1 tt3
26+SELECT * FROM t4;
27+a b
28+1 tt4
29+DELETE FROM t2;
30+DELETE FROM t3;
31+DELETE FROM t4;
32+SELECT * FROM t2;
33+a b
34+SELECT * FROM t3;
35+a b
36+SELECT * FROM t4;
37+a b
38+DROP TABLE t2;
39+DROP TABLE t3;
40+DROP TABLE t4;
41+set global DEBUG='';
42+include/rpl_end.inc
43
44=== added file 'mysql-test/suite/rpl/t/rpl_percona_bug1070255.test'
45--- mysql-test/suite/rpl/t/rpl_percona_bug1070255.test 1970-01-01 00:00:00 +0000
46+++ mysql-test/suite/rpl/t/rpl_percona_bug1070255.test 2014-03-17 11:03:19 +0000
47@@ -0,0 +1,51 @@
48+#
49+# Bug 1070255: overflow caused replication sql thread failed to execute events
50+#
51+
52+source include/have_debug.inc;
53+source include/have_binlog_format_row.inc;
54+source include/master-slave.inc;
55+
56+connection master;
57+
58+set global DEBUG='+d,dbug_table_map_id_500';
59+CREATE TABLE t2 (a INT PRIMARY KEY, b VARCHAR(20));
60+INSERT INTO t2 VALUES(1, '1');
61+
62+set global DEBUG='+d,dbug_table_map_id_4B_UINT_MAX+501';
63+CREATE TABLE t3 (a INT PRIMARY KEY, b VARCHAR(20));
64+INSERT INTO t3 VALUES(1, '1');
65+
66+set global DEBUG='+d,dbug_table_map_id_6B_UINT_MAX';
67+CREATE TABLE t4 (a INT PRIMARY KEY, b VARCHAR(20));
68+INSERT INTO t4 VALUES(1, '1');
69+
70+UPDATE t2, t3, t4 SET t2.b='tt2', t3.b='tt3', t4.b='tt4' WHERE t2.a=t3.a and t2.a=t4.a;
71+
72+sync_slave_with_master;
73+
74+SELECT * FROM t2;
75+SELECT * FROM t3;
76+SELECT * FROM t4;
77+
78+connection master;
79+
80+DELETE FROM t2;
81+DELETE FROM t3;
82+DELETE FROM t4;
83+
84+sync_slave_with_master;
85+
86+SELECT * FROM t2;
87+SELECT * FROM t3;
88+SELECT * FROM t4;
89+
90+connection master;
91+
92+DROP TABLE t2;
93+DROP TABLE t3;
94+DROP TABLE t4;
95+
96+set global DEBUG='';
97+
98+--source include/rpl_end.inc

Subscribers

People subscribed via source and target branches