Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
36a2727e
Commit
36a2727e
authored
Oct 11, 2010
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Postfix for BUG#55375
Removed option file and changed result file.
parent
fb89a79e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
mysql-test/suite/rpl/r/rpl_mixed_binlog_max_cache_size.result
...l-test/suite/rpl/r/rpl_mixed_binlog_max_cache_size.result
+37
-5
mysql-test/suite/rpl/t/rpl_mixed_binlog_max_cache_size-master.opt
...st/suite/rpl/t/rpl_mixed_binlog_max_cache_size-master.opt
+0
-1
No files found.
mysql-test/suite/rpl/r/rpl_mixed_binlog_max_cache_size.result
View file @
36a2727e
...
@@ -5,6 +5,8 @@ reset slave;
...
@@ -5,6 +5,8 @@ reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
start slave;
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
SET GLOBAL max_binlog_cache_size = 4096;
SET GLOBAL binlog_cache_size = 4096;
CREATE TABLE t1(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb;
CREATE TABLE t1(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb;
CREATE TABLE t2(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=MyIsam;
CREATE TABLE t2(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=MyIsam;
CREATE TABLE t3(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb;
CREATE TABLE t3(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb;
...
@@ -15,13 +17,14 @@ CREATE TABLE t3(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb;
...
@@ -15,13 +17,14 @@ CREATE TABLE t3(a INT PRIMARY KEY, data VARCHAR(30000)) ENGINE=Innodb;
Got one of the listed errors
Got one of the listed errors
*** Single statement on non-transactional table ***
*** Single statement on non-transactional table ***
Got one of the listed errors
Got one of the listed errors
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
--source include/wait_for_slave_sql_error_and_skip.inc
START SLAVE SQL_THREAD;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
include/start_slave.inc
*** Single statement on both transactional and non-transactional tables. ***
*** Single statement on both transactional and non-transactional tables. ***
Got one of the listed errors
Got one of the listed errors
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
--source include/wait_for_slave_sql_error_and_skip.inc
S
TART SLAVE SQL_THREAD
;
S
ET GLOBAL SQL_SLAVE_SKIP_COUNTER= 1
;
source include/diff_master_slave.inc;
include/start_slave.inc
########################################################################################
########################################################################################
# 2 - BEGIN - IMPLICIT COMMIT by DDL
# 2 - BEGIN - IMPLICIT COMMIT by DDL
########################################################################################
########################################################################################
...
@@ -119,6 +122,35 @@ BEGIN;
...
@@ -119,6 +122,35 @@ BEGIN;
Got one of the listed errors
Got one of the listed errors
COMMIT;
COMMIT;
source include/diff_master_slave.inc;
source include/diff_master_slave.inc;
########################################################################
# 8 - Bug#55375(Regression Bug) Transaction bigger than
# max_binlog_cache_size crashes slave
########################################################################
# [ On Slave ]
SET GLOBAL max_binlog_cache_size = 4096;
SET GLOBAL binlog_cache_size = 4096;
include/stop_slave.inc
include/start_slave.inc
CALL mtr.add_suppression("Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage.*");
CALL mtr.add_suppression("Writing one row to the row-based binary log failed.*");
TRUNCATE t1;
SET GLOBAL max_binlog_cache_size= ORIGINAL_VALUE;
SET GLOBAL binlog_cache_size= ORIGINAL_VALUE;
BEGIN;
Repeat statement 'INSERT INTO t1 VALUES($n, repeat("a", 32))' 128 times
COMMIT;
SELECT count(*) FROM t1;
count(*)
0
show binlog events in 'slave-bin.000001' from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
SET GLOBAL max_binlog_cache_size= ORIGINAL_VALUE;
SET GLOBAL binlog_cache_size= ORIGINAL_VALUE;
include/stop_slave.inc
include/start_slave.inc
SELECT count(*) FROM t1;
count(*)
128
########################################################################################
########################################################################################
# CLEAN
# CLEAN
########################################################################################
########################################################################################
...
...
mysql-test/suite/rpl/t/rpl_mixed_binlog_max_cache_size-master.opt
deleted
100644 → 0
View file @
fb89a79e
--binlog_cache_size=4096 --max_binlog_cache_size=7680
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment