We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
xraft/xraft-core/src/main/java/in/xnnyygn/xraft/core/log/sequence/FileEntrySequence.java
Line 208 in 3442abc
如果数据文件已经被截断了,但索引文件尚未被更新,就会发生不一致。 所以我认为应该先保存 offset,然后清理索引,再清理数据。
The text was updated successfully, but these errors were encountered:
有可能。不过这里移除尾部日志理论上极少发生,而且处理文件写入过程中的宕机主要靠启动时的文件检查,写入自身能做的恢复处理不多。
你可以把两句位置移动一下,或者在初始化时检查两个文件数据是否一致。如果你提交pull request的话我这边会看一下。谢谢。
Sorry, something went wrong.
No branches or pull requests
xraft/xraft-core/src/main/java/in/xnnyygn/xraft/core/log/sequence/FileEntrySequence.java
Line 208 in 3442abc
如果数据文件已经被截断了,但索引文件尚未被更新,就会发生不一致。
所以我认为应该先保存 offset,然后清理索引,再清理数据。
The text was updated successfully, but these errors were encountered: