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
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