// can be overwritten.
CopycatEntry entry = context.log().getEntry(request.logIndex());
if (entry == null) {
logger().warn("{} - Rejected {}: request entry not found in local log", context.clusterManager().localNode(), request);
return new PingResponse(request.id(), context.currentTerm(), false);
} else if (entry.term() != request.logTerm()) {
logger().warn("{} - Rejected {}: request entry term does not match local log", context.clusterManager().localNode(), request);
return new PingResponse(request.id(), context.currentTerm(), false);
} else {
doApplyCommits(request.commitIndex());
return new PingResponse(request.id(), context.currentTerm(), true);