state.currentTerm(response.term());
state.currentLeader(null);
state.transition(FollowerController.class);
triggerPingFutures(index, new CopycatException("Not the leader"));
} else if (!response.succeeded()) {
triggerPingFutures(index, new ProtocolException("Replica not in sync"));
} else {
triggerPingFutures(index);
}
} else {
triggerPingFutures(index, response.error());