Skip to content

[WIP] KAFKA-18562: standardize election/fetch timeout between Unattached and Followers #18921

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

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

frankvicky
Copy link
Contributor

JIRA: KAFKA-18562

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@github-actions github-actions bot added triage PRs from the community kraft small Small PRs labels Feb 16, 2025
@frankvicky frankvicky force-pushed the KAFKA-18562 branch 2 times, most recently from beff261 to 0361567 Compare February 17, 2025 12:58
Copy link
Contributor Author

@frankvicky frankvicky left a comment

Choose a reason for hiding this comment

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

Hi @ahuang98
I'm not certain if it is the right way for this patch.
Please take a look if you have a free moment.
Many thanks 🙇🏼

@@ -3279,7 +3279,7 @@ private long pollUnattachedAsVoter(UnattachedState state, long currentTimeMs) {
// If shutting down, then remain in this state until either the
// shutdown completes or an epoch bump forces another state transition
return shutdown.remainingTimeMs();
} else if (state.hasElectionTimeoutExpired(currentTimeMs)) {
} else if (state.hasFetchTimeoutExpired(currentTimeMs)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I understand correctly, we should use fetch timeout instead of election timeout when aligning with the follower's transition to the prospective state.

@frankvicky frankvicky marked this pull request as ready for review February 17, 2025 14:21
@frankvicky frankvicky marked this pull request as draft February 17, 2025 14:26
@github-actions github-actions bot removed the triage PRs from the community label Feb 18, 2025
@frankvicky frankvicky force-pushed the KAFKA-18562 branch 2 times, most recently from 5f6381a to 023c26d Compare February 23, 2025 14:32
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.

2 participants