setLeaderPayloadVersion(context.getPayloadVersion());
- for (String followerId : context.getPeerAddresses().keySet()) {
+ for (String followerId : context.getPeerIds()) {
FollowerLogInformation followerLogInformation =
new FollowerLogInformationImpl(followerId, -1, context);
minIsolatedLeaderPeerCount = minReplicationCount > 0 ? (minReplicationCount - 1) : 0;
}
- public int getMinIsolatedLeaderPeerCount(){
+ protected int getMinIsolatedLeaderPeerCount(){
return minIsolatedLeaderPeerCount;
}
}
wasLastChunk = true;
FollowerState followerState = followerLogInformation.getFollowerState();
- if(followerState == FollowerState.VOTING_NOT_INITIALIZED){
+ if(followerState == FollowerState.VOTING_NOT_INITIALIZED){
UnInitializedFollowerSnapshotReply unInitFollowerSnapshotSuccess =
new UnInitializedFollowerSnapshotReply(followerId);
context.getActor().tell(unInitFollowerSnapshotSuccess, context.getActor());