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

config_server_checks.js should assert if initial replSetConfig fails

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v3.6
    • Sharding 2020-04-20
    • 0

    Description

      The config_server_checks.js test runs

      rst.nodes[0].adminCommand(

      {replSetInitiate: conf}

      );

      We expect this to cause a network exception due to the node removing itself, but if it does not we should check the result of the command and assert if it is not OK. Otherwise it will fail in

      expectState(rst, ReplSetTest.State.REMOVED);

      which makes it harder to see that the problem was that the initiate failed, not that the node didn't become REMOVED.

      Attachments

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: