Details
Description
http://buildbot.askmonty.org/buildbot/builders/bld-dan-release/builds/4308/steps/test_1/logs/stdio
tokudb.locks-select-update-3 w2 [ fail ]
|
Test ended at 2016-10-26 04:25:57
|
|
CURRENT_TEST: tokudb.locks-select-update-3
|
mysqltest: At line 27: query 'reap' failed: 1205: Lock wait timeout exceeded; try restarting transaction
|
|
The result from queries just before the failure was:
|
SET DEFAULT_STORAGE_ENGINE='tokudb';
|
drop table if exists t;
|
create table t (a int primary key, b int);
|
insert into t values (1,0);
|
set session transaction isolation level read committed;
|
begin;
|
select * from t where a=1 for update;
|
a b
|
1 0
|
update t set b=b+1 where a=1;
|
set session transaction isolation level read committed;
|
begin;
|
select * from t where a=1 for update;
|
commit;
|
Attachments
Issue Links
- relates to
-
MDEV-7069 Fix buildbot failures in main server trees
-
- Stalled
-
- links to
Activity
Sprint | 5.5.55&10.0.30 [ 138 ] | |
Assignee | Elena Stepanova [ elenst ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Labels | upstream |
Remote Link | This issue links to "lp:1662909 Test tokudb.locks-select-update-3 is unstable (Web Link)" [ 27928 ] |
Fix Version/s | 10.0.30 [ 22313 ] | |
Fix Version/s | 10.1.22 [ 22502 ] | |
Fix Version/s | 10.2.5 [ 22117 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 79165 ] | MariaDB v4 [ 151519 ] |
The failure is rare (only 4 recorded occasions), but the reason seems obvious, the problem is easily reproducible with the additional sleep:
diff --git a/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test b/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test
index a563f06..3d0c018 100644
--- a/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test
+++ b/storage/tokudb/mysql-test/tokudb/t/locks-select-update-3.test
@@ -21,6 +21,7 @@ begin;
send select * from t where a=1 for update;
connection default;
# t1 commit
+--sleep 4
commit;
connection conn1;
# t2 select for update returns
Default tokudb_lock_timeout is only 4 seconds, it's not much; if on whatever reason SELECT or COMMIT take time, the timeout can be exceeded.