Merge lp:~vkolesnikov/pbxt/pbxt-bug-430716-testcases into lp:pbxt

Proposed by Vladimir Kolesnikov
Status: Merged
Approved by: Paul McCullagh
Approved revision: 712
Merged at revision: not available
Proposed branch: lp:~vkolesnikov/pbxt/pbxt-bug-430716-testcases
Merge into: lp:pbxt
Diff against target: None lines
To merge this branch: bzr merge lp:~vkolesnikov/pbxt/pbxt-bug-430716-testcases
Reviewer Review Type Date Requested Status
PBXT Core Pending
Review via email: mp+12240@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2009-09-22 10:58:59 +0000
3+++ ChangeLog 2009-09-22 17:03:39 +0000
4@@ -3,6 +3,8 @@
5
6 ------- 1.0.09d RC3 - Not yet released
7
8+RN276: Added test case for replication on tables w/o PKs (see bug #430716)
9+
10 RN275: Fixed bug #430600: 'Failed to read auto-increment value from storage engine' error.
11
12 RN274: Fixed bug #431240: This report is public edit xtstat fails if no PBXT table has been created. xtstat now accepts --database=information_schema or --database=pbxt. Depending on this setting PBXT will either use the information_schema.pbxt_statistics or the pbxt.statistics table. If information_schema is used, then the statistics are displayed even when no PBXT table exists. Recovery activity is also displayed, unless pbxt_support_xa=1, in which case MySQL will wait for PBXT recovery to complete before allowing connections.
13
14=== modified file 'test/mysql-test/lib/mtr_cases.pl'
15--- test/mysql-test/lib/mtr_cases.pl 2008-09-30 14:26:58 +0000
16+++ test/mysql-test/lib/mtr_cases.pl 2009-09-22 17:01:14 +0000
17@@ -867,7 +867,9 @@
18 {
19 # Test does not need binlog, add --skip-binlog to
20 # the options used when starting it
21- push(@{$tinfo->{'master_opt'}}, "--skip-log-bin");
22+ if (not grep(/^--log-bin/, @::opt_extra_mysqld_opt) and not grep(/^--log-bin/, @{$tinfo->{'master_opt'}})) {
23+ push(@{$tinfo->{'master_opt'}}, "--skip-log-bin");
24+ }
25 }
26 }
27
28
29=== added file 'test/mysql-test/r/rpl_for_pbxt3.result'
30--- test/mysql-test/r/rpl_for_pbxt3.result 1970-01-01 00:00:00 +0000
31+++ test/mysql-test/r/rpl_for_pbxt3.result 2009-09-22 17:01:14 +0000
32@@ -0,0 +1,15 @@
33+stop slave;
34+drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
35+reset master;
36+reset slave;
37+drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
38+start slave;
39+use test;
40+drop table if exists tb6_eng1;
41+create table tb6_eng1 ( f1 int, f2 char (15), f3 decimal (5,3), f4 datetime, index (f1) );
42+delete from tb6_eng1;
43+insert into tb6_eng1 values ( 1, 'abc', 0.1, now() );
44+update tb6_eng1 set f2 = 'def' where f1 = 1;
45+delete from tb6_eng1;
46+insert into tb6_eng1 values ( 1, 'abc', 0.1, now() );
47+# Last SQL Error:
48
49=== added file 'test/mysql-test/t/rpl_for_pbxt3-master.opt'
50--- test/mysql-test/t/rpl_for_pbxt3-master.opt 1970-01-01 00:00:00 +0000
51+++ test/mysql-test/t/rpl_for_pbxt3-master.opt 2009-09-22 17:01:14 +0000
52@@ -0,0 +1,1 @@
53+--binlog-format=row --log-bin
54
55=== added file 'test/mysql-test/t/rpl_for_pbxt3.test'
56--- test/mysql-test/t/rpl_for_pbxt3.test 1970-01-01 00:00:00 +0000
57+++ test/mysql-test/t/rpl_for_pbxt3.test 2009-09-22 17:01:14 +0000
58@@ -0,0 +1,31 @@
59+--disable_warnings
60+source include/master-slave.inc;
61+source include/have_binlog_format_mixed_or_row.inc;
62+--enable_warnings
63+--disable_abort_on_error
64+connection master;
65+
66+use test;
67+
68+--disable_warnings
69+drop table if exists tb6_eng1;
70+--enable_warnings
71+
72+create table tb6_eng1 ( f1 int, f2 char (15), f3 decimal (5,3), f4 datetime, index (f1) );
73+
74+let $run=1;
75+let $count=1;
76+
77+delete from tb6_eng1;
78+insert into tb6_eng1 values ( 1, 'abc', 0.1, now() );
79+
80+update tb6_eng1 set f2 = 'def' where f1 = 1;
81+real_sleep 1;
82+delete from tb6_eng1;
83+insert into tb6_eng1 values ( 1, 'abc', 0.1, now() );
84+
85+real_sleep 1;
86+connection slave;
87+let $slave_status=query_get_value( "show slave status", Last_SQL_Error, 1 );
88+--echo # Last SQL Error: $slave_status
89+

Subscribers

People subscribed via source and target branches