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

Test assumes replica set will be available in queryableBackupMode

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      Run the test with the attached repro applied.

      Show
      Run the test with the attached repro applied.
    • Sharding EMEA 2023-09-04
    • 50

      SERVER-79046 added a new test to check the oplog application after startup in queryableBackupMode. This test is using a js helper to get a connection to the secondary node after it was restarted, this is wrong because internally we first try to determine a primary, and because we shutdown the node, the primary might relinquish being a primary, causing the getSecondary function call to hang indefinitely waiting for a primary that will never be elected, because when initialized with queryableBackupMode, a node cannot form part of a replica set.

        1. repro.patch
          0.6 kB
          Marcos José Grillo Ramirez

            Assignee:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: