You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2024/01/10 21:10:00 UTC

[jira] [Updated] (RATIS-1995) Prevent data loss when a storage is accidentally re-formatted

     [ https://issues.apache.org/jira/browse/RATIS-1995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz-wo Sze updated RATIS-1995:
------------------------------
    Summary: Prevent data loss when a storage is accidentally re-formatted  (was: Peer should not accept vote from newly formatted servers)

A potential solution is that, after some entries has been replicated to all servers,
- servers should not accept vote from newly formatted servers.

> Prevent data loss when a storage is accidentally re-formatted
> -------------------------------------------------------------
>
>                 Key: RATIS-1995
>                 URL: https://issues.apache.org/jira/browse/RATIS-1995
>             Project: Ratis
>          Issue Type: Bug
>          Components: election
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>
> Similar to the problem described in RATIS-1677, if the RaftStorage in a peer is accidentally re-formatted, it could cause data loss.
> Consider the following
> # Server A and Server B were fast and had commit index 100 while server C had commit index 90.
> # The RaftStorage of Server A was accidentally re-formatted and Server A was restarted.  Its commit index became -1.
> # Server C started a leader election and Server A voted for it. The commit index became 90 – it lost the commits from index 91 to index 100.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)