use of org.voltdb.messaging.Iv2RepairLogRequestMessage in project voltdb by VoltDB.
the class InitiatorMailbox method handleLogRequest.
/** Produce the repair log. This is idempotent. */
private void handleLogRequest(VoltMessage message) {
Iv2RepairLogRequestMessage req = (Iv2RepairLogRequestMessage) message;
List<Iv2RepairLogResponseMessage> logs = m_repairLog.contents(req.getRequestId(), req.isMPIRequest());
tmLog.debug("" + CoreUtils.hsIdToString(getHSId()) + " handling repair log request id " + req.getRequestId() + " for " + CoreUtils.hsIdToString(message.m_sourceHSId) + ". ");
for (Iv2RepairLogResponseMessage log : logs) {
send(message.m_sourceHSId, log);
}
}
use of org.voltdb.messaging.Iv2RepairLogRequestMessage in project voltdb by VoltDB.
the class SpPromoteAlgo method prepareForFaultRecovery.
/** Start fixing survivors: setup scoreboard and request repair logs. */
void prepareForFaultRecovery() {
for (Long hsid : m_survivors) {
m_replicaRepairStructs.put(hsid, new ReplicaRepairStruct());
}
tmLog.info(m_whoami + "found (including self) " + m_survivors.size() + " surviving replicas to repair. " + " Survivors: " + CoreUtils.hsIdCollectionToString(m_survivors));
VoltMessage logRequest = new Iv2RepairLogRequestMessage(m_requestId, Iv2RepairLogRequestMessage.SPREQUEST);
m_mailbox.send(com.google_voltpatches.common.primitives.Longs.toArray(m_survivors), logRequest);
}
Aggregations