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
2e60009c
Commit
2e60009c
authored
May 29, 2007
by
aelkin/elkin@dsl-hkibras1-ff5dc300-70.dhcp.inet.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#22725
tests refining, see binlog_killed.test file for details
parent
515f3048
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
mysql-test/r/binlog_killed.result
mysql-test/r/binlog_killed.result
+2
-3
mysql-test/t/binlog_killed.test
mysql-test/t/binlog_killed.test
+20
-2
No files found.
mysql-test/r/binlog_killed.result
View file @
2e60009c
...
...
@@ -6,7 +6,6 @@ get_lock("a", 20)
1
reset master;
insert into t2 values (null, null), (null, get_lock("a", 10)),(null, get_lock("a", 10));
kill query 3;
select count(*) from t2 /* must be 3 */;
count(*)
3
...
...
@@ -19,7 +18,7 @@ is not null
select @a like "%#%error_code=0%" /* must return 1 */;
@a like "%#%error_code=0%"
1
select @a like "%insert%" /* must return 1 */;
@a like "%insert%"
select @a like "%insert
into
%" /* must return 1 */;
@a like "%insert
into
%"
1
drop table t1,t2,t3;
mysql-test/t/binlog_killed.test
View file @
2e60009c
...
...
@@ -15,6 +15,7 @@ create table t3 (a int auto_increment, b int, PRIMARY KEY (a)) ENGINE=InnoDB;
# effective test for bug#22725
#
let
$counter
=
200
;
# max 20 seconds to wait for insert performed the 1st row
connection
con1
;
select
get_lock
(
"a"
,
20
);
...
...
@@ -25,7 +26,24 @@ send insert into t2 values (null, null), (null, get_lock("a", 10)),(null, get_lo
connection
con1
;
disable_abort_on_error
;
disable_query_log
;
disable_result_log
;
while
(
`select count(*) from t2`
)
{
sleep
0.1
;
dec
$counter
;
if
(
!
$counter
)
{
die
(
"Waited too long for query to suceed"
);
}
}
eval
kill
query
$ID
;
enable_abort_on_error
;
enable_query_log
;
enable_result_log
;
connection
con2
;
--
error
0
,
ER_QUERY_INTERRUPTED
...
...
@@ -39,7 +57,7 @@ eval select
is
not
null
;
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
eval
select
@
a
like
"%#%error_code=0%"
/* must return 1 */
;
eval
select
@
a
like
"%insert%"
/* must return 1 */
;
eval
select
@
a
like
"%insert
into
%"
/* must return 1 */
;
# the functions are either *insensitive* to killing or killing can cause
# strange problmes with the error propagation out of SF's stack
# Bug#27563, Bug#27565, BUG#24971
...
...
@@ -227,7 +245,7 @@ drop function bug27563;
drop
function
bug27565
;
}
system
rm
$MYSQLTEST_VARDIR
/
tmp
/
kill_query_calling_sp
.
binlog
;
#
system rm $MYSQLTEST_VARDIR/tmp/kill_query_calling_sp.binlog ;
drop
table
t1
,
t2
,
t3
;
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