Search in sources :

Example 6 with BeginQuorumEpochResponseData

use of org.apache.kafka.common.message.BeginQuorumEpochResponseData in project kafka by apache.

the class RaftClientTestContext method expectBeginEpoch.

private void expectBeginEpoch(int epoch) throws Exception {
    pollUntilRequest();
    for (RaftRequest.Outbound request : collectBeginEpochRequests(epoch)) {
        BeginQuorumEpochResponseData beginEpochResponse = beginEpochResponse(epoch, localIdOrThrow());
        deliverResponse(request.correlationId, request.destinationId(), beginEpochResponse);
    }
    client.poll();
}
Also used : BeginQuorumEpochResponseData(org.apache.kafka.common.message.BeginQuorumEpochResponseData)

Aggregations

BeginQuorumEpochResponseData (org.apache.kafka.common.message.BeginQuorumEpochResponseData)6 Errors (org.apache.kafka.common.protocol.Errors)2 OptionalInt (java.util.OptionalInt)1 BeginQuorumEpochRequestData (org.apache.kafka.common.message.BeginQuorumEpochRequestData)1 Test (org.junit.jupiter.api.Test)1