Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48930

Use lastFetched from previous batch when comparing optimes for re-evaluating sync source

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2020-07-13

    Description

      Instead of using the latest optime for the batch that was just fetched, we should use the latest optime in the previous batch. If we find that the node wants to change sync sources, then we will abandon the batch that was just fetched and try to sync from another node.

      This will make it more likely for a node to switch sync sources when they are at similar optimes, because it increases the chances that the node thinks it is behind the other node.

      Attachments

        Activity

          People

            xuerui.fa@mongodb.com Xuerui Fa
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: