summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_autodiscover.test
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-01-20 13:45:42 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-01-20 13:45:42 +0100
commit12d1ee5473faecc14137a00b73f8606244cf43d9 (patch)
treec518f3c3554eaf727ca41dc821925d2a09e57531 /mysql-test/t/ndb_autodiscover.test
parent0c20ad6c1529a9efe9dcc84cc84039bb36471216 (diff)
downloadmariadb-git-12d1ee5473faecc14137a00b73f8606244cf43d9.tar.gz
added variable NDB_MGM to be able to run the management client in tests
added testcase for Bug#8035 added option to wait for not-started Bug#8035 mysql-test/mysql-test-run.sh: added variable NDB_MGM to be able to run the management client in tests mysql-test/r/ndb_autodiscover.result: added testcase for Bug#8035 mysql-test/t/ndb_autodiscover.test: added testcase for Bug#8035 ndb/tools/waiter.cpp: added option to wait for not-started sql/lock.cc: Bug#8035
Diffstat (limited to 'mysql-test/t/ndb_autodiscover.test')
-rw-r--r--mysql-test/t/ndb_autodiscover.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_autodiscover.test b/mysql-test/t/ndb_autodiscover.test
index 6551732adba..e6bfedc89ed 100644
--- a/mysql-test/t/ndb_autodiscover.test
+++ b/mysql-test/t/ndb_autodiscover.test
@@ -452,6 +452,26 @@ drop database test2;
show databases;
use test;
+#########################################################
+# Bug#8035
+# mysqld would segfault on second select * before bug was fixed
+#
+--disable_warnings
+drop database if exists test_only_ndb_tables;
+--enable_warnings
+create database test_only_ndb_tables;
+use test_only_ndb_tables;
+create table t1 (a int primary key) engine=ndb;
+select * from t1;
+--exec $NDB_MGM --no-defaults -e "all restart -n" > /dev/null
+--exec $NDB_TOOLS_DIR/ndb_waiter --no-defaults --not-started > /dev/null
+--error 1015
+select * from t1;
+--exec $NDB_MGM --no-defaults -e "all start" > /dev/null
+--exec $NDB_TOOLS_DIR/ndb_waiter --no-defaults > /dev/null
+use test;
+drop database test_only_ndb_tables;
+
######################################################
# Note! This should always be the last step in this
# file, the table t9 will be used and dropped