Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
Post-Helium
-
None
-
None
-
Operating System: All
Platform: All
-
2787
-
Normal
Description
In Follower we apply log to state machine as follows,
Line 219 : applyLogToStateMachine(appendEntries.getLeaderCommit());
For a slow follower the leader commit may be far ahead of what is in it's log. This can cause the following message to get printed over and over in the logs.
LOG.warn(
"{}: Missing index {} from log. Cannot apply state. Ignoring {} to {}",
logName(), i, i, index);
A simple fix for this may be to simply apply only the Followers commit index to the state machine.