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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7a82a059
Commit
7a82a059
authored
Jan 31, 2008
by
skozlov/ksm@mysql.com/virtop.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test case for bug#12691
parent
772ff3d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
0 deletions
+90
-0
mysql-test/suite/bugs/data/rpl_bug12691.dat
mysql-test/suite/bugs/data/rpl_bug12691.dat
+3
-0
mysql-test/suite/bugs/r/rpl_bug12691.result
mysql-test/suite/bugs/r/rpl_bug12691.result
+34
-0
mysql-test/suite/bugs/t/rpl_bug12691.test
mysql-test/suite/bugs/t/rpl_bug12691.test
+53
-0
No files found.
mysql-test/suite/bugs/data/rpl_bug12691.dat
0 → 100644
View file @
7a82a059
a
b
c
mysql-test/suite/bugs/r/rpl_bug12691.result
0 → 100644
View file @
7a82a059
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
**** On Master ****
CREATE TABLE t1 (b CHAR(10));
**** On Slave ****
STOP SLAVE;
**** On Master ****
LOAD DATA INFILE FILENAME
SELECT COUNT(*) FROM t1;
COUNT(*)
3
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Format_desc 1 # Server ver: #
master-bin.000001 # Query 1 # use `test`; CREATE TABLE t1 (b CHAR(10))
master-bin.000001 # Begin_load_query 1 # ;file_id=#;block_len=#
master-bin.000001 # Execute_load_query 1 # use `test`; LOAD DATA INFILE FILENAME ;file_id=#
**** On Slave ****
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
START SLAVE;
SELECT COUNT(*) FROM t1;
COUNT(*)
0
**** On Master ****
DROP TABLE t1;
mysql-test/suite/bugs/t/rpl_bug12691.test
0 → 100644
View file @
7a82a059
# Bug#12691: Exec_master_log_pos corrupted with SQL_SLAVE_SKIP_COUNTER
# Date: 01/31/2008
# Added: Serge Kozlov <skozlov@mysql.com>
--
source
include
/
master
-
slave
.
inc
--
connection
master
--
source
include
/
have_binlog_format_mixed_or_statement
.
inc
--
echo
--
echo
****
On
Master
****
CREATE
TABLE
t1
(
b
CHAR
(
10
));
--
echo
--
echo
****
On
Slave
****
--
sync_slave_with_master
STOP
SLAVE
;
--
source
include
/
wait_for_slave_to_stop
.
inc
--
connection
master
--
echo
--
echo
****
On
Master
****
--
exec
cp
$MYSQL_TEST_DIR
/
suite
/
bugs
/
data
/
rpl_bug12691
.
dat
$MYSQLTEST_VARDIR
/
tmp
/
--
echo
LOAD
DATA
INFILE
FILENAME
--
disable_query_log
--
eval
LOAD
DATA
INFILE
'$MYSQLTEST_VARDIR/tmp/rpl_bug12691.dat'
INTO
TABLE
t1
FIELDS
TERMINATED
BY
'|'
--
enable_query_log
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
rpl_bug12691
.
dat
SELECT
COUNT
(
*
)
FROM
t1
;
--
replace_column
2
# 5 #
--
replace_regex
/
Server
ver
:
.+/
Server
ver
:
#/ /table_id: [0-9]+/table_id: #/ /COMMIT.+xid=[0-9]+.+/#/ /file_id=[0-9]+/file_id=#/ /block_len=[0-9]+/block_len=#/ /'.+'/FILENAME/
SHOW
BINLOG
EVENTS
;
--
save_master_pos
--
connection
slave
--
echo
--
echo
****
On
Slave
****
SET
GLOBAL
SQL_SLAVE_SKIP_COUNTER
=
1
;
START
SLAVE
;
--
source
include
/
wait_for_slave_to_start
.
inc
--
sync_with_master
SELECT
COUNT
(
*
)
FROM
t1
;
# Clean up
--
connection
master
--
echo
--
echo
****
On
Master
****
DROP
TABLE
t1
;
--
sync_slave_with_master
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