-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
Resmoke does not pass the --mongo or --mongod options to MongoRunner.runMongod
The tests will open a first MongoDB instance, then fail when any test tries to open a subsequent instance with mongorunner
[executor:js_test] 2016-06-10T00:55:02.547+0000 Starting execution of js_tests... [MongoDFixture:job0] Starting mongod on port 20000... /data/mongo-tests/WT-2669/mongo/bin/mongod --setParameter enableTestCommands=1 --nopreallocj --dbpath /data/db/job0/resmoke --port 20000 [MongoDFixture:job0] mongod started on port 20000 with pid 16029. [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] MongoDB starting : pid=16029 port=20000 dbpath=/data/db/job0/resmoke 64-bit host=ip-10-170-157-161 [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] db version v3.3.6-229-ge533634 [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] git version: e533634d86aae9385d9bdd94e15d992c4c8de622 [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] allocator: tcmalloc [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] modules: none [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] build environment: [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] distarch: x86_64 [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] target_arch: x86_64 [MongoDFixture:job0] 2016-06-10T00:55:02.573+0000 I CONTROL [initandlisten] options: { net: { port: 20000 }, nopreallocj: true, setParameter: { enableTestCommands: "1" }, storage: { dbPath: "/data/db/job0/resmoke" } } [MongoDFixture:job0] 2016-06-10T00:55:02.594+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=7009M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), [MongoDFixture:job0] 2016-06-10T00:55:02.643+0000 I CONTROL [initandlisten] [MongoDFixture:job0] 2016-06-10T00:55:02.643+0000 I CONTROL [initandlisten] ** NOTE: This is a development version (3.3.6-229-ge533634) of MongoDB. [MongoDFixture:job0] 2016-06-10T00:55:02.643+0000 I CONTROL [initandlisten] ** Not recommended for production. [MongoDFixture:job0] 2016-06-10T00:55:02.643+0000 I CONTROL [initandlisten] [MongoDFixture:job0] 2016-06-10T00:55:02.643+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. [MongoDFixture:job0] 2016-06-10T00:55:02.643+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. [MongoDFixture:job0] 2016-06-10T00:55:02.643+0000 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended. [MongoDFixture:job0] 2016-06-10T00:55:02.643+0000 I CONTROL [initandlisten] [MongoDFixture:job0] 2016-06-10T00:55:02.644+0000 I NETWORK [HostnameCanonicalizationWorker] Starting hostname canonicalization worker [MongoDFixture:job0] 2016-06-10T00:55:02.645+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/job0/resmoke/diagnostic.data' [MongoDFixture:job0] 2016-06-10T00:55:02.652+0000 I NETWORK [initandlisten] waiting for connections on port 20000 [MongoDFixture:job0] Waiting to connect to mongod on port 20000. [MongoDFixture:job0] 2016-06-10T00:55:03.060+0000 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60786 #1 (1 connection now open) [MongoDFixture:job0] 2016-06-10T00:55:03.161+0000 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60787 #2 (2 connections now open) [MongoDFixture:job0] 2016-06-10T00:55:03.163+0000 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60788 #3 (3 connections now open) [MongoDFixture:job0] Successfully contacted the mongod on port 20000. [MongoDFixture:job0] 2016-06-10T00:55:03.164+0000 I NETWORK [conn2] end connection 127.0.0.1:60787 (2 connections now open) [MongoDFixture:job0] 2016-06-10T00:55:03.164+0000 I NETWORK [conn3] end connection 127.0.0.1:60788 (2 connections now open) [executor:js_test:job0] 2016-06-10T00:55:03.166+0000 Running SERVER-23333.js... /data/mongo-tests/WT-2669/mongo/bin/mongo --eval MongoRunner.dataDir = "/data/db/job0/mongorunner"; TestData = new Object(); TestData.wiredTigerEngineConfigString = ""; TestData.maxPort = 20249; TestData.wiredTigerIndexConfigString = ""; TestData.noJournal = false; TestData.testName = "SERVER-23333"; TestData.storageEngine = ""; TestData.minPort = 20010; TestData.noJournalPrealloc = true; TestData.wiredTigerCollectionConfigString = ""; MongoRunner.dataPath = "/data/db/job0/mongorunner/" --readMode commands --port 20000 /data/mongo-tests/WT-2669/suite/SERVER-23333.js [js_test:SERVER-23333] 2016-06-10T00:55:03.166+0000 Starting JSTest /data/mongo-tests/WT-2669/suite/SERVER-23333.js... /data/mongo-tests/WT-2669/mongo/bin/mongo --eval MongoRunner.dataDir = "/data/db/job0/mongorunner"; TestData = new Object(); TestData.wiredTigerEngineConfigString = ""; TestData.maxPort = 20249; TestData.wiredTigerIndexConfigString = ""; TestData.noJournal = false; TestData.testName = "SERVER-23333"; TestData.storageEngine = ""; TestData.minPort = 20010; TestData.noJournalPrealloc = true; TestData.wiredTigerCollectionConfigString = ""; MongoRunner.dataPath = "/data/db/job0/mongorunner/" --readMode commands --port 20000 /data/mongo-tests/WT-2669/suite/SERVER-23333.js [MongoDFixture:job0] 2016-06-10T00:55:03.164+0000 I NETWORK [conn1] end connection 127.0.0.1:60786 (2 connections now open) [js_test:SERVER-23333] 2016-06-10T00:55:03.174+0000 JSTest /data/mongo-tests/WT-2669/suite/SERVER-23333.js started with pid 16056. [js_test:SERVER-23333] 2016-06-10T00:55:03.183+0000 MongoDB shell version: 3.3.6-229-ge533634 [js_test:SERVER-23333] 2016-06-10T00:55:03.221+0000 connecting to: 127.0.0.1:20000/test [MongoDFixture:job0] 2016-06-10T00:55:03.222+0000 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60789 #4 (1 connection now open) [js_test:SERVER-23333] 2016-06-10T00:55:03.223+0000 MongoDB server version: 3.3.6-229-ge533634 [js_test:SERVER-23333] 2016-06-10T00:55:03.223+0000 /data/db/job0/mongorunner/ [js_test:SERVER-23333] 2016-06-10T00:55:03.226+0000 Resetting db path '/data/db/job0/mongorunner/mongod-20010' [js_test:SERVER-23333] 2016-06-10T00:55:03.231+0000 2016-06-10T00:55:03.230+0000 I - [thread1] shell: started program (sh16063): mongod --syncdelay 0 --storageEngine wiredTiger --wiredTigerCacheSizeGB 1.0 --nojournal --port 20010 --dbpath /data/db/job0/mongorunner/mongod-20010 --nopreallocj --setParameter enableTestCommands=1 [js_test:SERVER-23333] 2016-06-10T00:55:03.231+0000 d20010| Unable to start program mongod: No such file or directory [js_test:SERVER-23333] 2016-06-10T00:55:03.232+0000 2016-06-10T00:55:03.231+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:20010, reason: Connection refused [js_test:SERVER-23333] 2016-06-10T00:55:03.232+0000 Could not start mongo program at 20010, process ended [js_test:SERVER-23333] 2016-06-10T00:55:03.233+0000 2016-06-10T00:55:03.233+0000 E QUERY [thread1] TypeError: conn is null : [js_test:SERVER-23333] 2016-06-10T00:55:03.233+0000 @/data/mongo-tests/WT-2669/suite/SERVER-23333.js:14:9 [js_test:SERVER-23333] 2016-06-10T00:55:03.234+0000 @/data/mongo-tests/WT-2669/suite/SERVER-23333.js:5:2 [js_test:SERVER-23333] 2016-06-10T00:55:03.234+0000 [js_test:SERVER-23333] 2016-06-10T00:55:03.234+0000 failed to load: /data/mongo-tests/WT-2669/suite/SERVER-23333.js [MongoDFixture:job0] 2016-06-10T00:55:03.235+0000 I NETWORK [conn4] end connection 127.0.0.1:60789 (0 connections now open) [executor:js_test:job0] 2016-06-10T00:55:03.239+0000 SERVER-23333.js ran in 0.07 seconds. [js_test] 2016-06-10T00:55:03.240+0000 JSTest /data/mongo-tests/WT-2669/suite/SERVER-23333.js failed, so stopping... [executor:js_test:job0] 2016-06-10T00:55:03.240+0000 Received a StopExecution exception: JSTest /data/mongo-tests/WT-2669/suite/SERVER-23333.js failed. [executor:js_test] 2016-06-10T00:55:03.283+0000 Summary: 1 test(s) ran in 0.12 seconds (0 succeeded, 0 were skipped, 1 failed, 0 errored)
- duplicates
-
SERVER-22348 Propagate --mongo, --mongod, and --mongos resmoke.py options to MongoRunner
- Closed