Skip to content

m2.1 : Fix wal entry format, use checksums, fix wal file on startup if corrupted - #7

Merged
SantanuKar43 merged 15 commits into
mainfrom
m2.1/wal-checksum
Apr 26, 2026
Merged

m2.1 : Fix wal entry format, use checksums, fix wal file on startup if corrupted#7
SantanuKar43 merged 15 commits into
mainfrom
m2.1/wal-checksum

Conversation

@SantanuKar43

@SantanuKar43 SantanuKar43 commented Apr 18, 2026

Copy link
Copy Markdown
Owner
  • Fixed WAL entry format - length: 4 bytes | line: <length> bytes | checksum: 4 bytes
  • Added checksum to each WAL entry, used in validation on startup.
  • On server startup, WAL based recovery is initiated. It replays commands from WAL and builds the store in memory.
  • It also validates the WAL by checking checksum mismatch. If broken, the WAL file is truncated till last valid offset

must be merged after #5

@SantanuKar43
SantanuKar43 requested a review from Priyansh61 April 18, 2026 02:53
Base automatically changed from m2.2/wal-replay to main April 25, 2026 06:59
@SantanuKar43
SantanuKar43 merged commit df6c96f into main Apr 26, 2026
1 check passed
@SantanuKar43
SantanuKar43 deleted the m2.1/wal-checksum branch April 26, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant