~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/ndb/t/ndb_binlog_discover.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- source include/have_ndb.inc
 
2
-- source include/have_binlog_format_mixed_or_row.inc
 
3
 
 
4
--disable_warnings
 
5
drop table if exists t1;
 
6
--enable_warnings
 
7
 
 
8
#
 
9
# Bug #14516 Restart of cluster can cause NDB API replication failure
 
10
#
 
11
create table t1 (a int key) engine=ndb;
 
12
reset master;
 
13
--exec $NDB_MGM --no-defaults -e "all restart -n" > /dev/null
 
14
--exec $NDB_TOOLS_DIR/ndb_waiter --no-defaults --not-started > /dev/null
 
15
--exec $NDB_MGM --no-defaults -e "all start" > /dev/null
 
16
--exec $NDB_TOOLS_DIR/ndb_waiter --no-defaults > /dev/null
 
17
 
 
18
--disable_query_log
 
19
let $mysql_errno= 1;
 
20
while ($mysql_errno)
 
21
{
 
22
  # Table t1 is readonly until the mysqld has reconnected properly
 
23
  --error 0,1036,1296
 
24
  insert into t1 values(1);
 
25
  if ($mysql_errno)
 
26
  {
 
27
    --sleep 0.1
 
28
  }
 
29
}
 
30
--enable_query_log
 
31
 
 
32
--source include/show_binlog_events2.inc
 
33
PURGE MASTER LOGS TO 'mysqld-bin.000002';
 
34
 
 
35
--source include/show_binlog_events2.inc
 
36
drop table t1;