[SERVER-27445] ReplSetTest throws 'TypeError: TestData is undefined' when used outside of resmoke.py Created: 16/Dec/16  Updated: 16/Dec/16  Resolved: 16/Dec/16

Status: Closed
Project: Core Server
Component/s: Replication, Testing Infrastructure
Affects Version/s: 3.5.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-27339 ReplSetTest shouldn't inspect TestDat... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2017-01-02
Participants:

 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.


Generated at Thu Feb 08 04:15:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.