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

IllegalStateException when install snapshot from leader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1
    • None
    • gRPC, snapshot
    • None

    Description

       

      The event sequence that triggered IllegalStateException:

      1. Raft Group (A, B, C) with leader A.
      2. Client cli adds a new Peer D to the group.
      3. Leader A sends snapshot and logs to D, and peer D is successfully bootstrapped.
      4. The configuration change log (A,B,C,D) is NOT committed while B timeouts, starts an election, becomes the new leader.
      5. Client cli re-send the add-peer-D request to the newly elected leader B.
      6. B thoughts the D is a new peer with next-index = 0, tries to send the snapshot to D. D already had the snapshot, so the IllegalStateException occurred.

      Attachments

        Issue Links

          Activity

            People

              William Song Song Ziyang
              William Song Song Ziyang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m