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

Use _termShadow in updateTerm and processReplSetMetadata

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • v6.0, v5.3, v5.0
    • Repl 2022-04-18, Repl 2022-05-02, Repl 2022-05-16, Repl 2022-05-30, Repl 2022-06-13

    Description

      In the Replication Coordinator, we currently take the replication coordinator lock whenever we update the term (every find and getMore) or receive a command with replSetMetadata (e.g. replSetUpdatePosition). In both cases we need only take the lock when the term we receive is greater than our current term, which we can determine by checking the existing atomic _termShadow.

      Attachments

        Issue Links

          Activity

            People

              matthew.russotto@mongodb.com Matthew Russotto
              matthew.russotto@mongodb.com Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: