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

Support running sharding and replication tests in parallel

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.8
    • None
    • Testing Infrastructure
    • None
    • Fully Compatible
    • QuInt 8 08/28/15, Quint 9 09/18/15

    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
      

      Attachments

        Activity

          People

            charlie.swanson@mongodb.com Charlie Swanson
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: