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
de459367
Commit
de459367
authored
Jan 31, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#172 simplify test case for -30994 leak
parent
5074f6db
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
678 additions
and
496141 deletions
+678
-496141
mysql-test/std_data/leak172_t2.data
mysql-test/std_data/leak172_t2.data
+662
-496138
mysql-test/suite/tokudb.bugs/r/leak172.result
mysql-test/suite/tokudb.bugs/r/leak172.result
+2
-1
mysql-test/suite/tokudb.bugs/t/leak172.test
mysql-test/suite/tokudb.bugs/t/leak172.test
+8
-2
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+6
-0
No files found.
mysql-test/std_data/leak172_t2.data
View file @
de459367
This source diff could not be displayed because it is too large. You can
view the blob
instead.
mysql-test/suite/tokudb.bugs/r/leak172.result
View file @
de459367
...
@@ -117,7 +117,8 @@ KEY `c27` (`c27`(255)),
...
@@ -117,7 +117,8 @@ KEY `c27` (`c27`(255)),
KEY `c31` (`c31`)
KEY `c31` (`c31`)
);
);
LOAD DATA INFILE 'leak172_t1.data' INTO TABLE `t1` fields terminated by ',';
LOAD DATA INFILE 'leak172_t1.data' INTO TABLE `t1` fields terminated by ',';
LOAD DATA INFILE 'leak172_t2.data' INTO TABLE `t2`;
set session debug="+d,tokudb_end_bulk_insert_sleep";
LOAD DATA INFILE 'leak172_t2.data' INTO TABLE `t2` fields terminated by ',';
UPDATE t1, t2 SET t1.`c5` = 4 WHERE t1.`c6` <= 'o';
UPDATE t1, t2 SET t1.`c5` = 4 WHERE t1.`c6` <= 'o';
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
drop table t1,t2;
drop table t1,t2;
mysql-test/suite/tokudb.bugs/t/leak172.test
View file @
de459367
# test case simplified from RQG run that forces a lock not granted error on an update with a
# concurrent load into the same table.
source
include
/
have_tokudb
.
inc
;
source
include
/
have_tokudb
.
inc
;
source
include
/
have_debug
.
inc
;
set
default_storage_engine
=
tokudb
;
set
default_storage_engine
=
tokudb
;
disable_warnings
;
disable_warnings
;
...
@@ -130,10 +134,12 @@ CREATE TABLE `t2` (
...
@@ -130,10 +134,12 @@ CREATE TABLE `t2` (
LOAD
DATA
INFILE
'leak172_t1.data'
INTO
TABLE
`t1`
fields
terminated
by
','
;
LOAD
DATA
INFILE
'leak172_t1.data'
INTO
TABLE
`t1`
fields
terminated
by
','
;
connect
(
conn1
,
localhost
,
root
,,);
connect
(
conn1
,
localhost
,
root
,,);
send
LOAD
DATA
INFILE
'leak172_t2.data'
INTO
TABLE
`t2`
;
set
session
debug
=
"+d,tokudb_end_bulk_insert_sleep"
;
send
LOAD
DATA
INFILE
'leak172_t2.data'
INTO
TABLE
`t2`
fields
terminated
by
','
;
connection
default
;
connection
default
;
sleep
1
;
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
info
like
'LOAD DATA INFILE%'
and
state
like
'DBUG sleep'
;
source
include
/
wait_condition
.
inc
;
--
error
1205
--
error
1205
UPDATE
t1
,
t2
SET
t1
.
`c5`
=
4
WHERE
t1
.
`c6`
<=
'o'
;
UPDATE
t1
,
t2
SET
t1
.
`c5`
=
4
WHERE
t1
.
`c6`
<=
'o'
;
...
...
storage/tokudb/ha_tokudb.cc
View file @
de459367
...
@@ -3303,6 +3303,12 @@ int ha_tokudb::end_bulk_insert(bool abort) {
...
@@ -3303,6 +3303,12 @@ int ha_tokudb::end_bulk_insert(bool abort) {
loader_error
=
0
;
loader_error
=
0
;
if
(
loader
)
{
if
(
loader
)
{
if
(
!
abort_loader
&&
!
thd
->
killed
)
{
if
(
!
abort_loader
&&
!
thd
->
killed
)
{
DBUG_EXECUTE_IF
(
"tokudb_end_bulk_insert_sleep"
,
{
const
char
*
old_proc_info
=
thd
->
proc_info
;
thd
->
proc_info
=
"DBUG sleep"
;
my_sleep
(
20000000
);
thd
->
proc_info
=
old_proc_info
;
});
error
=
loader
->
close
(
loader
);
error
=
loader
->
close
(
loader
);
loader
=
NULL
;
loader
=
NULL
;
if
(
error
)
{
if
(
error
)
{
...
...
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