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

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

    • Fully Compatible
    • ALL
    • Sharding 2017-01-02

      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.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: