return pingFutures.lastEntry().getValue();
}
pingFutures.put(index, future);
PingRequest request = new PingRequest(state.nextCorrelationId(), state.currentTerm(), state.cluster().localMember().id(), index, log.containsEntry(index) ? log.<CopycatEntry>getEntry(index).term() : 0, state.commitIndex());
LOGGER.debug("{} - Sent {} to {}", state.clusterManager().localNode(), request, node);
node.client().ping(request).whenComplete((response, error) -> {
if (error != null) {
triggerPingFutures(index, error);
} else {