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

KAFKA-18379: Enforce resigned cannot transition to any other state in same epoch #19236

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from

Conversation

frankvicky
Copy link
Contributor

@frankvicky frankvicky commented Mar 19, 2025

JIRA: KAFKA-18379

For further details, please refer to KIP-996 and #18240 (comment).

In short, this PR adds a check for the transition from the resigned state to other states to prevent a resigned leader from accidentally becoming its own follower in the same epoch, which would create an invalid circular reference.

… same epoch

JIRA: KAFKA-18379

For further details, please refer to
[KIP-996](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=272927537#KIP996:PreVote-ResignedStatechanges)
and apache#18240 (comment).

In short, this PR adds a check for the transition from the resigned
state to other states to prevent a resigned leader from accidentally
becoming its own follower in the same epoch, which would create an
invalid circular reference.
@github-actions github-actions bot added triage PRs from the community kraft small Small PRs labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved kraft small Small PRs triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants