if (message instanceof FragmentTaskMessage) {
ts.createLocalFragmentWork((FragmentTaskMessage)message, false);
}
}
} else if (message instanceof RecoveryMessage) {
final RecoveryMessage rm = (RecoveryMessage)message;
if (rm.recoveryMessagesAvailable()) {
return;
}
assert(!m_rejoining);
/*
* Recovery site processor hasn't been cleaned up from the previous
* rejoin. New rejoin request cannot be processed now. Telling the
* rejoining site to retry later.
*/
if (m_rejoinSnapshotProcessor != null) {
m_rejoinLog.error("ExecutionSite is not ready to handle " +
"recovery request from site " +
CoreUtils.hsIdToString(rm.sourceSite()));
RecoveryMessage recoveryResponse = new RecoveryMessage(false);
m_mailbox.send(rm.sourceSite(), recoveryResponse);
return;
}
final long recoveringPartitionTxnId = rm.txnId();