[SERVER-7972] jstests/testing_only_commands.js fails when run under small_oplog Created: 18/Dec/12  Updated: 11/Jul/16  Resolved: 22/Dec/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3.2

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Build slaves that run the small_oplog suite


Operating System: ALL
Participants:

 Description   

The small_oplog scons target (startMongodSmallOplog) runs two mongods in a master-slave pair, and the port 28000 used by the slave conflicts with the hard-coded port 29000 used by testing_only_commands.js (because of the http port opened 1000 higher than the base 28000 port). testing_only_commands.js should either use a different hard-coded port or, if possible, dynamically pick a port that does not conflict with the environment the test is running in.



 Comments   
Comment by Ian Whalen (Inactive) [ 21/Dec/12 ]

same test is now failing during dur_passthrough on Nightly Linux 64-bit:

http://buildlogs.mongodb.org/Nightly%20Linux%2064-bit/builds/1217/test/slow%20nightly/dur_passthrough.js

Thu Dec 20 11:08:08.469 already have db for port: 27000
Thu Dec 20 11:08:08.469   Assertion failure !haveDbForPort src/mongo/shell/shell_utils_launcher.cpp 223
0x744f61 0x70a65d 0x603bf2 0x60469d 0x6f4e77 0x6e08cd 0x82aca2 0x162f92b06362 
 /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/mongo(_ZN5mongo15printStackTraceERSo+0x21) [0x744f61]
 /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/mongo(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) [0x70a65d]
 /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/mongo(_ZN5mongo11shell_utils13ProgramRunnerC1ERKNS_7BSONObjE+0x832) [0x603bf2]
 /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/mongo(_ZN5mongo11shell_utils17StartMongoProgramERKNS_7BSONObjEPv+0x2d) [0x60469d]
 /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/mongo(_ZN5mongo7V8Scope14nativeCallbackEPS0_RKN2v89ArgumentsE+0x467) [0x6f4e77]
 /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/mongo(_ZN5mongo7V8Scope10v8CallbackERKN2v89ArgumentsE+0x7d) [0x6e08cd]
 /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/mongo [0x82aca2]
 [0x162f92b06362]
Thu Dec 20 11:08:08.485 exec error: src/mongo/shell/servers.js:665 assertion src/mongo/shell/shell_utils_launcher.cpp:223
_startMongoProgram.apply( null, args );
                   ^
dur_passthrough.js FAIL
dur_passthrough.js failed test : jstests/testing_only_commands.js
dur_passthrough.js error, exception in dur_passthrough.js : error loading file: jstests/testing_only_commands.js
dur_passthrough.js FAIL
dur_passthrough.js lastRan :
{
	"name" : "jstests/testing_only_commands.js",
	"isDirectory" : false,
	"size" : 1401
}
Thu Dec 20 11:08:08.486 exec error: /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/jstests/slowNightly/dur_passthrough.js:121 error loading file: jstests/testing_only_commands.js
    throw e;
          ^
failed to load: /mnt/home/buildbot/slave/Linux_64bit_Nightly/mongo/jstests/slowNightly/dur_passthrough.js

Comment by auto [ 18/Dec/12 ]

Author:

{u'date': u'2012-12-18T16:39:39Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-7972 assign port more intelligently in test
Branch: master
https://github.com/mongodb/mongo/commit/d6e139e0ccbd0f081f7fe7e24e727fc4ef280ea3

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