-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
java.io.IOException in snapshot operation #857
Comments
Are there any other processes will operates (move, rename etc) on jraft snapshot files/folders ?
It looks like the snapshot meta file is already exists when try to moving the temp snapshot meta file to the target:
Then try to replace the file, but it fails too
I note that your kernel version is so old, what's the file system are u using? |
Please provide your |
I added more logs in #858, you can use this branch if you can. |
@killme2008 thank you a lot for digging into the issue.
|
The idea is: create symbolic link of original data file as 'snapshot' data, thus the snapshot generation step is fast enough, and snapshot file copying will work well still as SOFAJRaft will visite original file through the symbolic link file. |
|
You can package the jar by |
"in a few cases the exception mentioned above is seen" |
@yuyang0423, this issue is a sporadic issue, and there is no determined steps to reproduce the issue. I'm expecting I could've been able to provide detailed step to reproduce the issue, but unfortunately there are no steps to ensure the issue is always reproduced as expected. Till now, what we've monitored are:
|
If you have your own |
Describe the bug
We're using SOFAJRaft in one of our project. Nowadays, sometimes it's found that IOException is raised when snapshot is generated/saved:
Previously, a 'question' was submitted in gibhub(see: #820), but till now it seems there is no further following-up. So I'm submitting this bug to track this issue.
Expected behavior
It's expected no exception is raised.
Actual behavior
Exception as mentioned before is seen.
Steps to reproduce
Note that:
Minimal yet complete reproducer code (or GitHub URL to code)
Environment
java -version
):1.8.0_181-b13uname -a
):Linux 173604 3.10.0-957.el7.x86_64Reference: related discussion thread: #820
The text was updated successfully, but these errors were encountered: