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
84d4f588
Commit
84d4f588
authored
Nov 06, 2007
by
aelkin/elkin@koti.dsl.inet.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#27571
removing extra tests (on 5.1 that's been already done)
parent
12200589
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
69 deletions
+0
-69
mysql-test/t/binlog_killed_bug27571-master.opt
mysql-test/t/binlog_killed_bug27571-master.opt
+0
-1
mysql-test/t/binlog_killed_bug27571.test
mysql-test/t/binlog_killed_bug27571.test
+0
-68
No files found.
mysql-test/t/binlog_killed_bug27571-master.opt
deleted
100644 → 0
View file @
12200589
--loose-debug=d,stop_after_row_loop_done
mysql-test/t/binlog_killed_bug27571.test
deleted
100644 → 0
View file @
12200589
--
source
include
/
have_innodb
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
#
# bug#27571 asynchronous setting mysql_`query`::error and Query_log_e::error_code
#
# Checking that if killing happens inbetween of the end of rows loop and
# recording into binlog that will not lead to recording any error incl
# the killed error.
#
connect
(
looser
,
localhost
,
root
,,);
connect
(
killer
,
localhost
,
root
,,);
create
table
t1
(
a
int
auto_increment
,
b
int
,
PRIMARY
KEY
(
a
))
ENGINE
=
InnoDB
;
delete
from
t1
;
insert
into
t1
values
(
1
,
1
),(
2
,
2
);
reset
master
;
connection
looser
;
let
$ID
=
`select connection_id()`
;
send
update
t1
set
b
=
11
where
a
=
2
;
connection
killer
;
sleep
1
;
# let 1 second for the update to get to the sleeping point
--
replace_result
$ID
ID
eval
kill
query
$ID
;
connection
looser
;
--
error
0
# zero even though the query must be got killed while it was sleepin for 5 secs
reap
;
#
# this is another possible artifact. The killed error was not caught
# as that is logical as killing was not effective:
# data are ok and well as binlog event is without killed error (further).
# The reason of the following `show error' is to prove that
# killing simulation was effective
#
show
errors
;
connection
killer
;
# nothing is rolled back
select
*
from
t1
where
a
=
2
/* must be 11 */
;
# a proof the query is binlogged with an error
--
exec
$MYSQL_BINLOG
--
start
-
position
=
98
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
binlog_killed_bug27571
.
binlog
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
select
(
@
a
:=
load_file
(
"
$MYSQLTEST_VARDIR
/tmp/binlog_killed_bug27571.binlog"
))
is
not
null
;
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
let
$error_code
=
`select @a like "%#%error_code=0%"`
;
eval
select
$error_code
/* must return 1*/
;
#
# cleanup
#
drop
table
t1
;
--
echo
end
of
the
tests
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