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

Remove serverStatus call from ReplSetTest.startSet when restart=true

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • v8.0
    • Repl 2024-05-13
    • 13

      In SERVER-79734 we added a check in ReplSetTest.startSet when restart=true that if the caller has not disabled auto-step up behavior but they are using the in-memory storage engine we throw an error. (Without this check, the user would see errors from the subsequent call to replSetStepUp noting the replica set is not yet initialized.)

      BF-32585 has shown this serverStatus call can race with sharding initialization, however it's not trivial to make this call un-racy in a robust way.

      For now I think we should remove the check but we can reevaluate if we see a lot of people being confused by the need to set triggerStepUp=false when restarting in a test with the in-memory storage engine in the future. 

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: