[
https://issues.apache.org/jira/browse/KAFKA-18187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907665#comment-17907665
]
Peter Lee commented on KAFKA-18187:
-----------------------------------
Hi [~alyssahuang], I'm working on implementing this improvement. While tracing
through the code, I noticed something that makes me unsure about what exactly
needs to be changed:
Currently, when a replica receives EndQuorum:
1. It transitions to Follower state (via handleEndQuorumEpochRequest and
maybeTransition)
2. In Follower state, it will grant PreVotes if:
- The requester's log is up-to-date AND
- The follower hasn't fetched from any leader yet (hasFetchedFromLeader ==
false)
My question is: What's the actual improvement needed here? Should replicas that
receive EndQuorum bypass these existing PreVote rules (like the log up-to-date
check)? Or is there something else I'm missing about how EndQuorum should
affect PreVote handling?
I'd appreciate some clarification on the intended behavior change, as I want to
make sure I understand the requirements correctly before implementing.
Thanks!
> Replicas that receive EndQuorum should grant preVotes in that epoch
> -------------------------------------------------------------------
>
> Key: KAFKA-18187
> URL: https://issues.apache.org/jira/browse/KAFKA-18187
> Project: Kafka
> Issue Type: Improvement
> Affects Versions: 4.0.0
> Reporter: Alyssa Huang
> Assignee: Peter Lee
> Priority: Minor
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)