-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle trailing zeros in Raft log WAL with EXT4 writeback mode (#โฆ
โฆ17042) * chore: refine logging * fix: handle trailing zeros in Raft log WAL with EXT4 writeback mode When EXT4 is mounted with data=writeback, data and metadata (file length) can be written to disk in arbitrary order, potentially leaving trailing zeros in the WAL tail. Fix: Truncate zero bytes starting from the first un-decodable WALRecord and treat the chunk as successfully opened. This issue is fixed in the dependent crate: - drmingdrmer/raft-log@757542b
- Loading branch information
1 parent
d46605e
commit 5a1546e
Showing
4 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters