[SERVER-18268] Support running sharding and replication tests in parallel Created: 30/Apr/15  Updated: 29/Oct/15  Resolved: 09/Sep/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.1.8

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Charlie Swanson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-20212 Shell cannot connect to a replica set... Closed
depends on SERVER-1424 smoke.py could use some work Closed
Duplicate
is duplicated by SERVER-19084 ShardingTest REST Interface Port Conf... Closed
is duplicated by SERVER-13077 Make ReplSetTest port allocation cons... Closed
is duplicated by SERVER-13112 Cannot use more than one ShardingTest... Closed
Backwards Compatibility: Fully Compatible
Sprint: QuInt 8 08/28/15, Quint 9 09/18/15
Participants:

 Description   

Multiple instances of the ReplTest, ReplSetTest, and ShardingTest shell helpers cannot be used at the same time, or even by the same mongo shell without passing the "startPort" parameter to the constructor.

var a = new ReplSetTest({name: 'a', nodes: 1});
var b = new ReplSetTest({name: 'b', nodes: 1, startPort: 31010});
var c = new ReplSetTest({name: 'c', nodes: 1});
a.startSet();
b.startSet(); // OK because we start at port 31010.
c.startSet(); // This will fail to acquire port 31000.

ReplSetTest Starting....
Resetting db path '/data/db/c-0'
2015-04-29T21:02:20.277-0400 I -        already have db for port: 31000
2015-04-29T21:02:20.277-0400 I -        Assertion failure !haveDbForPort src/mongo/shell/shell_utils_launcher.cpp 268
...
2015-04-29T21:02:20.283-0400 E QUERY    Error: assertion src/mongo/shell/shell_utils_launcher.cpp:268
    at Function.MongoRunner.startWithArgs (src/mongo/shell/servers.js:841:34)
    at Function.MongoRunner.runMongod (src/mongo/shell/servers.js:595:30)
    at ReplSetTest.start (src/mongo/shell/replsettest.js:689:44)
    at ReplSetTest.startSet (src/mongo/shell/replsettest.js:258:21)
    at (shell):1:3 at src/mongo/shell/servers.js:841


Generated at Thu Feb 08 03:47:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.