currentTerm = state.getCurrentTerm();
if (!recognized) {
final AppendEntriesReplyProto reply = ServerProtoUtils.toAppendEntriesReplyProto(
leaderId, getId(), groupId, currentTerm, followerCommit, nextIndex, NOT_LEADER, callId);
if (LOG.isDebugEnabled()) {
final AppendEntriesReplyProto reply = ServerProtoUtils.toAppendEntriesReplyProto(
leaderId, getId(), groupId, currentTerm, followerCommit, Math.min(nextIndex, previous.getIndex()),
INCONSISTENCY, callId);
state.updateStatemachine(leaderCommit, currentTerm);
final long n = isHeartbeat? state.getLog().getNextIndex(): entries[entries.length - 1].getIndex() + 1;
reply = ServerProtoUtils.toAppendEntriesReplyProto(leaderId, getId(), groupId, currentTerm,
state.getLog().getLastCommittedIndex(), n, SUCCESS, callId);