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

config_server_checks.js should assert if initial replSetConfig fails

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

      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.

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

              Created:
              Updated:
              Resolved: