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
33fe3b58
Commit
33fe3b58
authored
Apr 25, 2019
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for a previous commit
parent
ae1b8b9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
mysql-test/suite/rpl/r/kill_race_condition.result
mysql-test/suite/rpl/r/kill_race_condition.result
+13
-0
mysql-test/suite/rpl/t/kill_race_condition.test
mysql-test/suite/rpl/t/kill_race_condition.test
+28
-0
No files found.
mysql-test/suite/rpl/r/kill_race_condition.result
0 → 100644
View file @
33fe3b58
include/master-slave.inc
[connection master]
set global debug_dbug='d,rows_log_event_before_open_table';
set debug_sync='now WAIT_FOR before_open_table';
create table t1 (a int);
insert t1 values (1),(2),(3);
kill slave_sql_thread;
set debug_sync='now SIGNAL go_ahead_sql';
set global debug_dbug='';
set debug_sync='RESET';
drop table t1;
start slave;
include/rpl_end.inc
mysql-test/suite/rpl/t/kill_race_condition.test
0 → 100644
View file @
33fe3b58
source
include
/
have_debug_sync
.
inc
;
source
include
/
have_binlog_format_row
.
inc
;
source
include
/
master
-
slave
.
inc
;
connection
slave
;
set
global
debug_dbug
=
'd,rows_log_event_before_open_table'
;
send
set
debug_sync
=
'now WAIT_FOR before_open_table'
;
connection
master
;
create
table
t1
(
a
int
);
insert
t1
values
(
1
),(
2
),(
3
);
connection
slave
;
reap
;
let
$a
=
`select id from information_schema.processlist where state='debug sync point: now'`
;
replace_result
$a
slave_sql_thread
;
eval
kill
$a
;
set
debug_sync
=
'now SIGNAL go_ahead_sql'
;
set
global
debug_dbug
=
''
;
set
debug_sync
=
'RESET'
;
connection
master
;
drop
table
t1
;
connection
slave
;
start
slave
;
source
include
/
rpl_end
.
inc
;
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