Test assumes replica set will be available in queryableBackupMode

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Marcos José Grillo Ramirez
            Reporter:
            Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: