Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1995

Prevent data loss when a storage is accidentally re-formatted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • election
    • None

    Description

      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

      1. Server A and Server B were fast and had commit index 100 while server C had commit index 90.
      2. The RaftStorage of Server A was accidentally re-formatted and Server A was restarted. Its commit index became -1.
      3. 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.

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: