Skip to content

WaitForCommitAsync in write operations #25

Answered by sakno
potrusil-osi asked this question in Q&A
Discussion options

You must be logged in to vote

WaitForCommitAsync doesn't provide transactional behavior. It's low-level API. Transactional behavior is out of scope of this Raft implementation. It's responsibility of the developer. The method allows you to ensure that the log entry at the specified index is marked as committed by the majority of nodes. It means that the cluster accepts the log record in a consistent way and it cannot be removed from the log. Before that, the log entry has uncommitted state which means that the only local node has this record in the log but all other nodes not. Committing is a process of replication (distribution) of uncommitted log entries by the leader across followers.

If WaitForCommitAsync is timed…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@potrusil-osi
Comment options

@sakno
Comment options

@potrusil-osi
Comment options

@sakno
Comment options

Answer selected by potrusil-osi
Comment options

You must be logged in to vote
5 replies
@potrusil-osi
Comment options

@sakno
Comment options

@sakno
Comment options

@potrusil-osi
Comment options

@sakno
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #25 on December 22, 2020 12:03.