Skip to content

Raft Cluster: Checksum for log lines in nodes.conf #3960

@zuiderkwast

Description

@zuiderkwast

Follow-up of #3887.

To catch short writes of log lines (written in appendonly style) add a checksum to each log line.

Idea: CRC64, inserted in the beginning of the log line.

log <crc64hex> <index> <term> <type> <data...>

Checksums for the other parts of nodes.conf is not necessary, because we write it to a temp file and rename if after a complete successful write, so there is no risk of short writes in that scenario.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions