Description
The event sequence that triggered IllegalStateException:
- Raft Group (A, B, C) with leader A.
- Client cli adds a new Peer D to the group.
- Leader A sends snapshot and logs to D, and peer D is successfully bootstrapped.
- The configuration change log (A,B,C,D) is NOT committed while B timeouts, starts an election, becomes the new leader.
- Client cli re-send the add-peer-D request to the newly elected leader B.
- 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
Attachments
Issue Links
- links to