Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving a leader during snapshot synchronization can delete committed log entries #133

Closed
negokaz opened this issue Feb 28, 2022 · 0 comments · Fixed by #134
Closed

Moving a leader during snapshot synchronization can delete committed log entries #133

negokaz opened this issue Feb 28, 2022 · 0 comments · Fixed by #134
Labels
bug Something isn't working

Comments

@negokaz
Copy link
Contributor

negokaz commented Feb 28, 2022

Expected Behavior

Committed log entries are not deleted except by compaction

Current Behavior

Committed log entries can be deleted by snapshot synchronization

Steps to Reproduce

(It is assumed that the number of nodes is 3)

  1. The leader (m1) stops (or crashes) during the follower (m2) is synchronizing snapshots
  2. Remaining members commit new events and then entities reply some results
  3. Snapshot synchronization on m2 completes and then reset its log
  4. The latest leader (m3) stops (or crashes)
  5. Member m1 becomes the new leader

Example:
moving-leader-during-snapshot-sync drawio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant