Choose whether to do oplog catch up based on local last fetched optime rather than last applied optime

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When a node decides if it's up to date, it compares the highest last applied optime of other nodes to it's own last applied optime: https://github.com/mongodb/mongo/blob/r3.4.2/src/mongo/db/repl/replication_coordinator_impl.cpp#L2781-L2788

      We could go into drain mode faster and skip catch up more often if nodes compared the highest last applied optime of other nodes to their own last fetched optime instead.

            Assignee:
            Judah Schvimer
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: