Commit 9e51a916 authored by unknown's avatar unknown
Browse files

After ndbd nodes has been restarted the mysqld's will enter "read only" mode...

After ndbd nodes has been restarted the mysqld's will enter "read only" mode until they are fully connected again. Wait in a loop until 
mysqld's has exited from that.


parent 9e40aad7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
drop table if exists t1;
create table t1 (a int key) engine=ndb;
reset master;
insert into t1 values(1);
show binlog events from <binlog_start>;
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	#	#	BEGIN
+15 −1
Original line number Diff line number Diff line
@@ -14,6 +14,20 @@ reset master;
--exec $NDB_TOOLS_DIR/ndb_waiter --no-defaults --not-started > /dev/null
--exec $NDB_MGM --no-defaults -e "all start" > /dev/null
--exec $NDB_TOOLS_DIR/ndb_waiter --no-defaults > /dev/null

--disable_query_log
let $mysql_errno= 1;
while ($mysql_errno)
{
  # Table t1 is readonly until the mysqld has reconnected properly
  --error 0,1036
  insert into t1 values(1);
  if ($mysql_errno)
  {
    --sleep 0.1
  }
}
--enable_query_log

--source include/show_binlog_events.inc
drop table t1;