jsancio commented on code in PR #19416:
URL: https://github.com/apache/kafka/pull/19416#discussion_r2050786287
##########
raft/src/main/java/org/apache/kafka/raft/LeaderState.java:
##########
@@ -87,28 +92,54 @@ public class LeaderState<T> implements EpochState {
// This is volatile because resignation can be requested from an external
thread.
private volatile boolean resignRequested = false;
+ /* Used to coordinate the upgrade of the kraft.version from 0 to 1. The
upgrade is triggered by
+ * the clients to RaftClient.
+ * 1. if the kraft version is 0, the starting state is Voters. The voter
set is the voters in
Review Comment:
Thanks. Updated the comment. Hopefully, it is clearer now.
--
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]