File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
raft/src/main/java/org/apache/kafka/raft Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ protected LeaderState(
163163 ReplicaState state = new ReplicaState (voterNode .voterKey (), hasAcknowledgedLeader , voterNode .listeners ());
164164 this .voterStates .put (voterNode .voterKey ().id (), state );
165165 if (isInitializing ) {
166+ log .debug ("put " + state + " into CommittedVoterStates" );
166167 this .committedVoterStates .put (voterNode .voterKey ().id (), state );
167168 }
168169 }
@@ -720,7 +721,6 @@ private boolean maybeUpdateHighWatermark() {
720721
721722 int indexOfHw = voterStates .size () / 2 ;
722723 Optional <LogOffsetMetadata > highWatermarkUpdateOpt = followersByDescendingFetchOffset .get (indexOfHw ).endOffset ;
723- highWatermark .ifPresent (this ::updateCommittedVoter );
724724
725725 if (highWatermarkUpdateOpt .isPresent ()) {
726726
You can’t perform that action at this time.
0 commit comments