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

ReplSetTest throws 'TypeError: TestData is undefined' when used outside of resmoke.py

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.5.1
    • Fix Version/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2017-01-02

      Description

      Sometimes it is convenient to use ReplSetTest directly from the mongo shell to quickly spawn a replica set. However, since it unconditionally accesses TestData, which is only set by resmoke, this causes the following error:

      2016-12-16T10:04:36.163-0500 E QUERY    [main] TypeError: TestData is undefined :
      ReplSetTest/this._updateConfigIfNotDurable@src/mongo/shell/replsettest.js:623:13
      ReplSetTest/this._setDefaultConfigOptions@src/mongo/shell/replsettest.js:637:9
      ReplSetTest/this.initiate@src/mongo/shell/replsettest.js:647:9
      ShardingTest@src/mongo/shell/shardingtest.js:1086:13
      @(shell):1:10
      

      This came from this commit.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kaloian.manassiev Kaloian Manassiev
                Reporter:
                kaloian.manassiev Kaloian Manassiev
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: