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

Make replica set primary detection stepdown-proof in concurrency workloads

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.12
    • None
    • Concurrency, Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2019-05-20

    Description

      The chunks helper for concurrency workloads has a function to retrieve the primary replica set node from a shard.

      If this function doesn't find a primary node from any of the current nodes, it returns immediately. This is not stepdown-proof, as a node could be transitioning to primary but not yet reporting isMaster: true.

      We should use assert.soon with a short-ish timeout instead of immediately returning and failing a test, similar to what the replica set test class does.

      Attachments

        Activity

          People

            janna.golden@mongodb.com Janna Golden
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: