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

commitlog: Introduce epoch #1851

Merged
merged 2 commits into from
Nov 5, 2024
Merged

commitlog: Introduce epoch #1851

merged 2 commits into from
Nov 5, 2024

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
7 of 8 checks passed
@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.

4 participants