> all the transactions has been applied Can you clarify what you mean by "all" the transaction? Is it mean all transactions of a commit on Ratis nodes or all transactions in the raft log in a single Ratis node?
-Rui On Wed, Jan 20, 2021 at 9:51 AM Pietro Tollot <[email protected]> wrote: > Thanks very much for the answer, is there a method to know if all the > transactions has been applied? > > Thanks > > On 20 Jan 2021, at 17:47, Tsz Wo Sze <[email protected]> wrote: > > Hi Pietro, > > The applyTransaction method is called once the transaction has been > committed. > A transaction is committed once it has been replicated (not applied) to a > majority of nodes. > > Hope it helps. > Tsz-Wo > > > On Thu, Jan 21, 2021 at 12:04 AM Pietro Tollot <[email protected]> wrote: > >> Hi all, i have a doubt about the use of the applyTransaction method of a >> BaseStateMachine, my doubt regards when the methods is called, it is done >> once the cluster has committed a message or before to commit a message? >> That is a message is committed once applyTransaction has been performed in >> the majority of nodes? >> >> Thanks, >> Pietro > > >
