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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.0-rc0
    • Fix Version/s: 3.6.0-rc1
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      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

            Assignee:
            william.schultz William Schultz
            Reporter:
            kaloian.manassiev Kaloian Manassiev
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: