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

standalone_in_queryable_backup_mode.js test might try to get a primary in a replica set with only secondaries

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2024-04-01
    • 0
    • 1

      This test checks the queryable backup mode, by shutting down a secondary node, restaring it with the --queryableBackupMode flag, and then issuing reads considering writes should be forbidden in that mode. As part of the test, there is a read right after stopping a secondary node that tries to get the primary of the replica set, and if the primary stop getting heartbeats from the secondary (i.e. they could be taking too long in slow machine tests), then there won't be any primary to query, causing the test to fail.

      This is a test issue, the reason of the read is to get the shard identity string that will allow the stopped node to be restarted as queryable, so, in order to fix this issue we could simply move the read right before stopping the secondary node.

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

              Created:
              Updated:
              Resolved: