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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2020-07-13

      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.

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

              Created:
              Updated:
              Resolved: