public class AppendFailureResponseHandlerTask extends AbstractResponseHandlerTask
AppendFailureResponse
sent by
AppendRequestHandlerTask
after an append-entries request
or InstallSnapshotHandlerTask
after an install snapshot request.
Decrements nextIndex
of the follower by 1 if the response is valid.
See 5.3 Log replication section of In Search of an Understandable Consensus Algorithm paper by Diego Ongaro and John Ousterhout.
AppendRequest
,
AppendSuccessResponse
,
AppendFailureResponse
logger, raftNode
Constructor and Description |
---|
AppendFailureResponseHandlerTask(RaftNodeImpl raftNode,
AppendFailureResponse response) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleResponse() |
protected Endpoint |
sender() |
innerRun
run
public AppendFailureResponseHandlerTask(RaftNodeImpl raftNode, AppendFailureResponse response)
protected void handleResponse()
handleResponse
in class AbstractResponseHandlerTask
protected Endpoint sender()
sender
in class AbstractResponseHandlerTask
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.