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

Test assumes replica set will be available in queryableBackupMode

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: