[SERVER-6602] loadserverscripts.js fails in multiVersion testing Created: 26/Jul/12  Updated: 11/Jul/16  Resolved: 26/Jul/12

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.2.0-rc1

Type: Bug Priority: Minor - P4
Reporter: Ian Whalen (Inactive) Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

http://buildlogs.mongodb.org/build/5011007cd2a60f6653000000/test/501100d6d2a60f6653000065/

testing db.loadServerScripts()
 m30999| Thu Jul 26 08:39:42 [conn1] 	 put [loadserverscripts] on: shard0000:localhost:30000
 m30999| Thu Jul 26 08:39:42 [conn1] couldn't find database [loadserverscripts] in config db
Error("Printing Stack Trace")@:0
()@src/mongo/shell/utils.js:37
("[\"function\"] != [\"undefined\"] are not equal : Checking that myfunc() is undefined")@src/mongo/shell/utils.js:58
("function","undefined","Checking that myfunc() is undefined")@src/mongo/shell/utils.js:88
@jstests/loadserverscripts.js:18
["function"] != ["undefined"] are not equal : Checking that myfunc() is undefined
Caught error : 
assert: ["function"] != ["undefined"] are not equal : Checking that myfunc() is undefined
	"message" : "error loading js file: jstests/loadserverscripts.js",
{
	"fileName" : "/data/buildslaves/Linux_64bit_multiVersion/mongo/jstests/multiVersion/multi_version_sharding_passthrough.js",
	"lineNumber" : 139,
	"name" : "Error"
	"stack" : "load(\"jstests/loadserverscripts.js\")@:0\n()@/data/buildslaves/Linux_64bit_multiVersion/mongo/jstests/multiVersion/multi_version_sharding_passthrough.js:139\napply(null,[object Array])@:0\n((function () {load(testFile.name);}),1)@src/mongo/shell/utils.js:364\n([object bson_object],430,[object Array])@/data/buildslaves/Linux_64bit_multiVersion/mongo/jstests/multiVersion/multi_version_sharding_passthrough.js:140\nforEach((function (testFile) {if (!shouldRunTest(testFile, opts.exceptPatterns)) {return;}print(\" *******************************************\");print(\"         Test : \" + testFile.name + \" ...\");try {print(\"                \" + Date.timeFunc(function () {load(testFile.name);}, 1) + \"ms\");} catch (e) {if (!opts.continueOnError) {throw e;}print(\"Caught error : \");printjson(e);errors.push(e);}}))@:0\n([object Object])@/data/buildslaves/Linux_64bit_multiVersion/mongo/jstests/multiVersion/multi_version_sharding_passthrough.js:128\n@/data/buildslaves/Linux_64bit_multiVersion/mongo/jstests/multiVersion/multi_version_sharding_passthrough.js:368\n",
}



 Comments   
Comment by auto [ 26/Jul/12 ]

Author:

{u'date': u'2012-07-26T12:55:15-07:00', u'email': u'aaron@10gen.com', u'name': u'Aaron'}

Message: SERVER-6576 SERVER-6602 Fix loadserverscripts.js to clear variables so it can be run multiple times in a row and to wait until a parallel shell insert completes before checking the result.
Branch: master
https://github.com/mongodb/mongo/commit/d7a5f9060c3bd3b5ba478fde7f98a65ca4ea152f

Comment by Greg Studer [ 26/Jul/12 ]

Issue is probably related to test cleanup? - multiVersionTests are run in two different passes backed by two different empty clusters.

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