jsancio commented on code in PR #19416:
URL: https://github.com/apache/kafka/pull/19416#discussion_r2049226287
##########
raft/src/main/java/org/apache/kafka/raft/FollowerState.java:
##########
@@ -38,19 +40,20 @@ public class FollowerState implements EpochState {
private final Set<Integer> voters;
// Used for tracking the expiration of both the Fetch and FetchSnapshot
requests
private final Timer fetchTimer;
+ // Used to throttle update voter request and allow for Fetch/FetchSnapshot
requests
+ private final Timer updateVoterPeriodTimer;
+
/* Used to track if the replica has fetched successfully from the leader
at least once since the transition to
* follower in this epoch. If the replica has not yet fetched
successfully, it may be able to grant PreVotes.
*/
- private boolean hasFetchedFromLeader;
+ private boolean hasFetchedFromLeader = false;
private Optional<LogOffsetMetadata> highWatermark;
+ // For kraft.version 0, track if the leader has recieved updated voter
information
Review Comment:
Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]