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

config_server_checks.js should assert if initial replSetConfig fails

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.6
    • Sprint:
      Sharding 2020-04-20
    • Linked BF Score:
      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

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

              Dates

              Created:
              Updated:
              Resolved: