-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RheaKV snapshot inconsistent if node panic during compress save. #604
Comments
very similar to this issue #480, please check this code snippet
|
It's fine here, you can delete the corrupted snapshot and restart the node. When the code panic at |
Node can't back to normal unless copy |
first fix, ensure temp is sync to disk, still test
|
maybe more safe if use |
Describe the bug
we see this error after node panic back.
Expected behavior
compress shouldn't return success before sync to os.
Actual behavior
Snapshot kv data lost.
Steps to reproduce
panic node during kvStore file save.
Minimal yet complete reproducer code (or GitHub URL to code)
Environment
java -version
):uname -a
):The text was updated successfully, but these errors were encountered: