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

ReplSetTest.initiate throws `TypeError: TestData is undefined` if used outside of resmoke

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.6.0-rc0
    • 3.6.0-rc1
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL

    Description

      If ReplSetTest.initiate is called directly through the shell (not through resmoke), it throws the following exception:

      __unknown_name__:PRIMARY> rs.initiate();
      ...
      2017-10-18T09:31:29.596-0400 E QUERY    [thread1] TypeError: TestData is undefined
      ReplSetTest/this.initiateWithAnyNodeAsPrimary@src/mongo/shell/replsettest.js:944:1
      ReplSetTest/this.initiateWithNodeZeroAsPrimary@src/mongo/shell/replsettest.js:969:9
      ReplSetTest/this.initiate@src/mongo/shell/replsettest.js:983:9
      @(shell):1:1
      

      Attachments

        Activity

          People

            william.schultz@mongodb.com William Schultz (Inactive)
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: