Skip to content
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

feat(wal): support chained CRC for write ahead log #538

Merged
merged 11 commits into from
Sep 28, 2024
Merged

Conversation

mattisonchao
Copy link
Member

Motivation

To prevent data corruption from affecting the stability or causing unrecoverable exceptions. Introduce CRC to help validate if the data has corrupted.

Modification

  • Support chained CRC CRC(n) = CRC( DATAn, CRCn-1 ) we can validate that followers have exactly the same identical WAL.
  • Support TxnFormatVersion2 for compatibility with the existing format.
  • Adding CRC WAL test

Others

will add the proposal later.

@mattisonchao mattisonchao self-assigned this Sep 26, 2024
@mattisonchao mattisonchao marked this pull request as ready for review September 26, 2024 16:34
Copy link
Collaborator

@merlimat merlimat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mattisonchao mattisonchao merged commit 01a4d8f into main Sep 28, 2024
7 checks passed
@mattisonchao mattisonchao deleted the wal.crc.1 branch September 28, 2024 02:02
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.

2 participants