diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2006-05-16 20:56:45 +0200 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2006-05-16 20:56:45 +0200 |
commit | 597d84faf92cd246787579baf8fbbf44df7f2595 (patch) | |
tree | 0702c1d46957884f30b134fe83ce8de743f5c8a7 /mysql-test/t/ndb_autodiscover3.test | |
parent | 72232c69f69aaf16e11601e56d1b70437c8b514d (diff) | |
download | mariadb-git-597d84faf92cd246787579baf8fbbf44df7f2595.tar.gz |
Bug #16875 Using stale MySQLD FRM files can cause restored cluster to fail
- adoptions to handle binlog
Diffstat (limited to 'mysql-test/t/ndb_autodiscover3.test')
-rw-r--r-- | mysql-test/t/ndb_autodiscover3.test | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mysql-test/t/ndb_autodiscover3.test b/mysql-test/t/ndb_autodiscover3.test index 73b4bf8b94f..8baadf70101 100644 --- a/mysql-test/t/ndb_autodiscover3.test +++ b/mysql-test/t/ndb_autodiscover3.test @@ -36,23 +36,26 @@ select * from t2 order by a limit 3; --exec $NDB_MGM --no-defaults -e "all restart -i" >> $NDB_TOOLS_OUTPUT --exec $NDB_TOOLS_DIR/ndb_waiter --no-defaults >> $NDB_TOOLS_OUTPUT +# to ensure mysqld has connected again, and recreated system tables +--sleep 3 --connection server2 +show tables like 't2'; create table t2 (a int key) engine=ndbcluster; insert into t2 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10); select * from t2 order by a limit 3; # server 1 should have a stale cache, and in this case wrong frm, transaction must be retried --connection server1 ---error 1015 -select * from t2 order by a limit 3; select * from t2 order by a limit 3; --exec $NDB_MGM --no-defaults -e "all restart -i" >> $NDB_TOOLS_OUTPUT --exec $NDB_TOOLS_DIR/ndb_waiter --no-defaults >> $NDB_TOOLS_OUTPUT +# to ensure mysqld has connected again, and recreated system tables +--sleep 3 --connection server1 -show tables; +show tables like 't2'; create table t2 (a int key) engine=ndbcluster; insert into t2 values (1),(2),(3),(4),(5),(6),(7),(8),(9),(10); select * from t2 order by a limit 3; |