Search in sources :

Example 1 with Iv2RepairLogRequestMessage

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);
    }
}
Also used : Iv2RepairLogRequestMessage(org.voltdb.messaging.Iv2RepairLogRequestMessage) Iv2RepairLogResponseMessage(org.voltdb.messaging.Iv2RepairLogResponseMessage)

Example 2 with Iv2RepairLogRequestMessage

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);
}
Also used : VoltMessage(org.voltcore.messaging.VoltMessage) Iv2RepairLogRequestMessage(org.voltdb.messaging.Iv2RepairLogRequestMessage)

Aggregations

Iv2RepairLogRequestMessage (org.voltdb.messaging.Iv2RepairLogRequestMessage)2 VoltMessage (org.voltcore.messaging.VoltMessage)1 Iv2RepairLogResponseMessage (org.voltdb.messaging.Iv2RepairLogResponseMessage)1