Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1183

Clustering : When handling an append entry Follower should apply log to state machine only till it's current commit index

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Post-Helium
    • None
    • mdsal
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpantelis Tom Pantelis
            moraja@cisco.com Moiz Raja
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: