You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ratis.apache.org by Asad Awadia <as...@gmail.com> on 2023/07/26 19:33:30 UTC

OnApply

When ratis says committed - is it referring to committing the log or
applying the log on the state machine?

Is there a way to 'wait' for the raft log to be applied by the state
machine before returning a response? Slightly by pass the 'asynchronous '
nature of raft

Re: OnApply

Posted by Tsz Wo Sze <sz...@gmail.com>.
Committed (or Commit Index) means committing the log.  There is a separated
Apply Index for applying on the state machine.

The log is indeed applied by the state machine before returning a
response.  The state machine may include a reply in the response.

Tsz-Wo


On Wed, Jul 26, 2023 at 12:33 PM Asad Awadia <as...@gmail.com> wrote:

> When ratis says committed - is it referring to committing the log or
> applying the log on the state machine?
>
> Is there a way to 'wait' for the raft log to be applied by the state
> machine before returning a response? Slightly by pass the 'asynchronous '
> nature of raft
>
>
>