// Launch in S1 the task that will initialize S2
log(testCase + " add task " + Thread.currentThread());
addTask(taskInitTargetS2, ResultCode.SUCCESS, null);
log(testCase + " " + server2.getServerId() + " wait target " + Thread.currentThread());
ReplicationMsg msgrcv;
do
{
msgrcv = server2.receive();
log(testCase + " " + server2.getServerId() + " receives " + msgrcv);
}
while(!(msgrcv instanceof InitializeTargetMsg));
assertTrue(msgrcv instanceof InitializeTargetMsg, msgrcv.getClass().getCanonicalName());
// Signal RS we just entered the full update status
log(testCase + " change status");
server2.signalStatusChange(ServerStatus.FULL_UPDATE_STATUS);