Skip to content

Changes to the Key-Value Store must be agreed by majority(CFT), is that true? #2535

Answered by achamayou
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

@svenFeng KV writes happen in local state on the primary and are assigned a transaction ID (https://microsoft.github.io/CCF/main/use_apps/issue_commands.html), consensus then tries to replicate them out to the rest network. This is described in detail under: https://microsoft.github.io/CCF/main/use_apps/verify_tx.html

Until the state of a transaction is COMMITTED, it is only tentatively applied on the current primary, but isn't persisted yet and could still be rolled back if replication failed.

Your network with two nodes shut down will be unable to make progress permanently, transactions submitted after the nodes have stopped responding will never commit. If the nodes were momentarily un…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant