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

Reset state machine when apply snapshot from leader #100

Merged
merged 10 commits into from
Nov 10, 2023

Conversation

JackyWoo
Copy link
Contributor

@JackyWoo JackyWoo commented Nov 3, 2023

Which issues of this PR fixes:

This PR try to fix #99

Change log:

  • Reset state machine when apply snapshot from leader

/cc @lzydmxy

@JackyWoo JackyWoo added this to the Release v2.0.3 milestone Nov 3, 2023
@marising
Copy link
Contributor

marising commented Nov 6, 2023

Need set last_commit_index in state machine and check log store

@JackyWoo
Copy link
Contributor Author

JackyWoo commented Nov 7, 2023

@marising setted

@JackyWoo
Copy link
Contributor Author

JackyWoo commented Nov 7, 2023

Please ignore the tsan error, it will be fixed in another PR.

@JackyWoo JackyWoo added the bug Something isn't working label Nov 7, 2023
@JackyWoo JackyWoo merged commit 2c3d742 into JDRaftKeeper:master Nov 10, 2023
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
Development

Successfully merging this pull request may close these issues.

numChildren become a negative number
4 participants