Skip to content

Conversation

@kim
Copy link
Contributor

@kim kim commented Oct 15, 2024

Adds a field epoch typed u64 to the commit header. It signifies the
term number of the leader when writing to a commitlog in a distributed
setting.

It will help detecting and recovering from divergent logs, a situation
which can arise during a leader failover.

Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

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

This is fine by me, but could you please update the commitlog proposal as a way to document this change?

Adds a field `epoch` typed u64 to the commit header. It signifies the
term number of the leader when writing to a commitlog in a distributed
setting.

It will help detecting and recovering from divergent logs, a situation
which can arise during a leader failover.
@kim kim force-pushed the kim/commitlog/epoch branch from b1bc229 to 996fcde Compare November 5, 2024 08:13
@kim kim added this pull request to the merge queue Nov 5, 2024
Merged via the queue into master with commit f22b163 Nov 5, 2024
@kim kim deleted the kim/commitlog/epoch branch November 5, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants