cmccabe commented on code in PR #16626:
URL: https://github.com/apache/kafka/pull/16626#discussion_r1684609661
##########
raft/src/main/java/org/apache/kafka/raft/internals/KRaftControlRecordStateMachine.java:
##########
@@ -65,7 +65,7 @@ public final class KRaftControlRecordStateMachine {
//
// 2. The read operations lastVoterSet, voterSetAtOffset and
kraftVersionAtOffset read
// the nextOffset first before reading voterSetHistory or
kraftVersionHistory
- private volatile long nextOffset = 0;
+ private volatile long nextOffset = -1;
Review Comment:
I think we should use the constant defined elsewhere in this PR for the
initial log offset.
--
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]