protected boolean completeAppend ( boolean succeeded , long lastLogIndex , CompletableFuture < AppendResponse > future ) { future . complete ( logResponse ( AppendResponse . builder ( ) . withStatus ( RaftResponse . Status . OK ) . withTerm ( raft . getTerm ( ) ) . withSucceeded ( succeeded ) . withLastLogIndex ( lastLogIndex ) . build ( ) ) ) ; return succeeded ; }
Returns a successful append response .