34
34
import org .apache .kafka .raft .internals .ReplicaKey ;
35
35
import org .apache .kafka .raft .internals .UpdateVoterHandlerState ;
36
36
import org .apache .kafka .raft .internals .VoterSet ;
37
+ import org .apache .kafka .raft .utils .VoteRpc ;
37
38
import org .apache .kafka .server .common .KRaftVersion ;
38
39
39
40
import org .slf4j .Logger ;
@@ -225,7 +226,7 @@ public void resetAddVoterHandlerState(
225
226
addVoterHandlerState .ifPresent (
226
227
handlerState -> handlerState
227
228
.future ()
228
- .complete (RaftUtil .addVoterResponse (error , message ))
229
+ .complete (VoteRpc .addVoterResponse (error , message ))
229
230
);
230
231
addVoterHandlerState = state ;
231
232
}
@@ -242,7 +243,7 @@ public void resetRemoveVoterHandlerState(
242
243
removeVoterHandlerState .ifPresent (
243
244
handlerState -> handlerState
244
245
.future ()
245
- .complete (RaftUtil .removeVoterResponse (error , message ))
246
+ .complete (VoteRpc .removeVoterResponse (error , message ))
246
247
);
247
248
removeVoterHandlerState = state ;
248
249
}
@@ -719,7 +720,7 @@ private void updateVoterAndObserverStates(VoterSet lastVoterSet) {
719
720
}
720
721
}
721
722
722
- static class ReplicaState implements Comparable <ReplicaState > {
723
+ public static class ReplicaState implements Comparable <ReplicaState > {
723
724
private ReplicaKey replicaKey ;
724
725
private Endpoints listeners ;
725
726
private Optional <LogOffsetMetadata > endOffset ;
0 commit comments