Search in sources :

Example 21 with Iv2RepairLogResponseMessage

use of org.voltdb.messaging.Iv2RepairLogResponseMessage in project voltdb by VoltDB.

the class TestMpPromoteAlgo method makeRealFragResponse.

Iv2RepairLogResponseMessage makeRealFragResponse(long requestId, long sourceHSId, int sequence, int ofTotal, long handle) {
    FragmentTaskMessage frag = mock(FragmentTaskMessage.class);
    when(frag.getInitiateTask()).thenReturn(mock(Iv2InitiateTaskMessage.class));
    Iv2RepairLogResponseMessage m = new Iv2RepairLogResponseMessage(requestId, sequence, ofTotal, handle, handle, frag);
    m.m_sourceHSId = sourceHSId;
    return m;
}
Also used : Iv2RepairLogResponseMessage(org.voltdb.messaging.Iv2RepairLogResponseMessage) FragmentTaskMessage(org.voltdb.messaging.FragmentTaskMessage) Iv2InitiateTaskMessage(org.voltdb.messaging.Iv2InitiateTaskMessage)

Aggregations

Iv2RepairLogResponseMessage (org.voltdb.messaging.Iv2RepairLogResponseMessage)21 CompleteTransactionMessage (org.voltdb.messaging.CompleteTransactionMessage)7 Test (org.junit.Test)6 FragmentTaskMessage (org.voltdb.messaging.FragmentTaskMessage)6 Iv2InitiateTaskMessage (org.voltdb.messaging.Iv2InitiateTaskMessage)6 ArrayList (java.util.ArrayList)4 AtomicLong (java.util.concurrent.atomic.AtomicLong)3 TransactionInfoBaseMessage (org.voltcore.messaging.TransactionInfoBaseMessage)3 VoltMessage (org.voltcore.messaging.VoltMessage)3 Random (java.util.Random)2 RepairResult (org.voltdb.iv2.RepairAlgo.RepairResult)2 HashMap (java.util.HashMap)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 InOrder (org.mockito.InOrder)1 DumpMessage (org.voltdb.messaging.DumpMessage)1 Iv2RepairLogRequestMessage (org.voltdb.messaging.Iv2RepairLogRequestMessage)1 RepairLogTruncationMessage (org.voltdb.messaging.RepairLogTruncationMessage)1