Skip to content

Commit

Permalink
Doc: add faq: "What will happen when data gets lost"
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Nov 14, 2023
1 parent f41729a commit 941b89b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openraft/src/docs/faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ nodes in the cluster, including voters and non-voters (learners). When a
replication.


### What will happen when data gets lost?

Raft operates on the presumption that the storage medium (i.e., the disk) is
secure and reliable.

If this presumption is violated, e.g., the raft logs are lost or the snapshot is
damaged, no predictable outcome can be assured. In other words, the resulting
behavior is **undefined**.


### Can I wipe out the data of ONE node and wait for the leader to replicate all data to it again?

Avoid doing this. Doing so will panic the leader. But it is permitted
Expand Down

0 comments on commit 941b89b

Please sign in to comment.