msgLog.logMessage( "Did setup, seq=" + sequenceNr + " new sessionId=" + newSessionId );
keeperState = KeeperState.SyncConnected;
Pair<Master, Machine> masterAfterIWrote = getMasterFromZooKeeper( false );
msgLog.logMessage( "Get master after write:" + masterAfterIWrote );
int masterId = masterAfterIWrote.other().getMachineId();
<BUG>setDataChangeWatcher( MASTER_NOTIFY_CHILD, masterId );
receiver.newMaster( masterAfterIWrote, new Exception() );
sessionId = newSessionId;</BUG>
}
else

msgLog.logMessage( "Did setup, seq=" + sequenceNr + " new sessionId=" + newSessionId );
keeperState = KeeperState.SyncConnected;
Pair<Master, Machine> masterAfterIWrote = getMasterFromZooKeeper( false );
msgLog.logMessage( "Get master after write:" + masterAfterIWrote );
int masterId = masterAfterIWrote.other().getMachineId();
setDataChangeWatcher( MASTER_NOTIFY_CHILD, masterId );
if ( sessionId != -1 )
{
receiver.newMaster( masterAfterIWrote, new Exception() );
}
sessionId = newSessionId;
}
else
