Skip to content

Commit 4ed8154

Browse files
author
Priyanka Sangam
committed
Fix ndb_lock mtr failure
1 parent f6a78ae commit 4ed8154

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
use test;
2+
create table t1 (id int primary key, val int) engine=ndb;
3+
4+
create unique index val_unique on t1(val);
5+
ERROR HY000: Got temporary error 748 'Busy during read of event table' from NDBCLUSTER
6+
7+
drop table t1;

mysql-test/suite/ndb/r/ndb_lock.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,3 @@ lock tables t3 read;
198198
delete t2 from t2, t3 where t2.id = t3.id;
199199
unlock tables;
200200
drop table t2, t3;
201-
create table t1 (id int primary key, val int) engine=ndb;
202-
create unique index val_unique on t1(val);
203-
ERROR HY000: Got temporary error 748 'Busy during read of event table' from NDBCLUSTER
204-
drop table t1;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--source include/have_ndb.inc
2+
--source have_ndb_error_insert.inc
3+
use test;
4+
5+
create table t1 (id int primary key, val int) engine=ndb;
6+
--exec $NDB_MGM --no-defaults --verbose=0 --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 19000"
7+
--error 1297
8+
create unique index val_unique on t1(val);
9+
--exec $NDB_MGM --no-defaults --verbose=0 --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 0"
10+
drop table t1;
11+

mysql-test/suite/ndb/t/ndb_lock.test

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,3 @@ unlock tables;
266266

267267
connection con1;
268268
drop table t2, t3;
269-
270-
create table t1 (id int primary key, val int) engine=ndb;
271-
--exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 19000" >> $NDB_TOOLS_OUTPUT
272-
--error 1297
273-
create unique index val_unique on t1(val);
274-
--exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "all error 0" >> $NDB_TOOLS_OUTPUT
275-
drop table t1;

0 commit comments

Comments
 (0)