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
7c78945c
Commit
7c78945c
authored
Jan 21, 2015
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-801 test case for a tokudb update that should fail but succeeds
parent
e7f48475
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
mysql-test/suite/tokudb.bugs/r/db801.result
mysql-test/suite/tokudb.bugs/r/db801.result
+18
-0
mysql-test/suite/tokudb.bugs/t/db801.test
mysql-test/suite/tokudb.bugs/t/db801.test
+50
-0
No files found.
mysql-test/suite/tokudb.bugs/r/db801.result
0 → 100644
View file @
7c78945c
set default_storage_engine=tokudb;
drop table if exists t;
create table t (id int not null primary key, c int not null) engine=tokudb;
insert into t values (1,0);
begin;
update t set c=10 where id=1;
update t set c=100;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
rollback;
drop table t;
create table t (id int not null primary key, c int not null) engine=tokudb partition by hash(id) partitions 1;
insert into t values (1,0);
begin;
update t set c=10 where id=1;
update t set c=100;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
rollback;
drop table t;
mysql-test/suite/tokudb.bugs/t/db801.test
0 → 100644
View file @
7c78945c
# test for the DB-801 bug on mysql-5.5.41
source
include
/
have_tokudb
.
inc
;
source
include
/
have_partition
.
inc
;
set
default_storage_engine
=
tokudb
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
# run the test on a tokudb table
create
table
t
(
id
int
not
null
primary
key
,
c
int
not
null
)
engine
=
tokudb
;
insert
into
t
values
(
1
,
0
);
connect
(
conn1
,
localhost
,
root
,,);
connection
default
;
begin
;
update
t
set
c
=
10
where
id
=
1
;
connection
conn1
;
--
error
ER_LOCK_WAIT_TIMEOUT
update
t
set
c
=
100
;
connection
default
;
rollback
;
disconnect
conn1
;
drop
table
t
;
# run the test on a partitioned tokudb table
create
table
t
(
id
int
not
null
primary
key
,
c
int
not
null
)
engine
=
tokudb
partition
by
hash
(
id
)
partitions
1
;
insert
into
t
values
(
1
,
0
);
connect
(
conn1
,
localhost
,
root
,,);
connection
default
;
begin
;
update
t
set
c
=
10
where
id
=
1
;
connection
conn1
;
--
error
ER_LOCK_WAIT_TIMEOUT
update
t
set
c
=
100
;
connection
default
;
rollback
;
disconnect
conn1
;
drop
table
t
;
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