[SERVER-11700] basic9.js failing in slowWeekly/shardingpassthrough on Linux 64 Created: 14/Nov/13  Updated: 11/Jul/16  Resolved: 15/Nov/13

Status: Closed
Project: Core Server
Component/s: Sharding, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.5.4

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: builbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

http://buildlogs.mongodb.org/mci_0.9_linux_64/builds/17926/test/slow_nightly_tests_0/sharding_passthrough.js

 *******************************************
         Test : jstests/basic9.js ...
assert failed : key names aren't allowed to start with $ doesn't work
 m30001| 2013-11-14T11:06:05.757+0000 [conn176] creating index with info @ 3:25cd5e8
 m30001| 2013-11-14T11:06:05.757+0000 [conn176] build index on: test.foo_basic9 properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "test.foo_basic9" }
 m30001| 2013-11-14T11:06:05.758+0000 [conn176] build index done.  scanned 0 total records. 0 secs
Error: Printing Stack Trace
    at printStackTrace (src/mongo/shell/utils.js:38:15)
    at doassert (src/mongo/shell/assert.js:6:5)
    at assert (src/mongo/shell/assert.js:14:5)
    at jstests/basic9.js:15:1
    at /srv/10gen/mci-exec/mci/git@github.commongodb/mongo.git/master/jstests/slowNightly/sharding_passthrough.js:149:13
    at Function.Date.timeFunc (src/mongo/shell/types.js:27:17)
    at /srv/10gen/mci-exec/mci/git@github.commongodb/mongo.git/master/jstests/slowNightly/sharding_passthrough.js:148:14
    at Array.forEach (native)
    at /srv/10gen/mci-exec/mci/git@github.commongodb/mongo.git/master/jstests/slowNightly/sharding_passthrough.js:9:7
2013-11-14T11:06:05.758+0000 assert failed : key names aren't allowed to start with $ doesn't work at src/mongo/shell/assert.js:7
2013-11-14T11:06:05.758+0000 Error: error loading js file: jstests/basic9.js at /srv/10gen/mci-exec/mci/git@github.commongodb/mongo.git/master/jstests/slowNightly/sharding_passthrough.js:149
failed to load: /srv/10gen/mci-exec/mci/git@github.commongodb/mongo.git/master/jstests/slowNightly/sharding_passthrough.js



 Comments   
Comment by Githook User [ 15/Nov/13 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-11700 do not globally disable _validateForStorage() in test
Branch: master
https://github.com/mongodb/mongo/commit/ae6b7fadf7b5be38c304fba3e166cdfe66c646c0

Comment by Daniel Pasette (Inactive) [ 15/Nov/13 ]

failed here:
https://mci.10gen.com/ui/task/mongodb_mongo_master_enterprise_linux_64_amazon_ami_787023e2c42bf7e65b1286887243e9177384d0c4_13_11_15_01_06_06_slow_nightly_tests_linux_64_amzn

http://buildlogs.mongodb.org/mci_0.9_linux_64_debug/builds/15664/test/slow_nightly_tests_0/sharding_passthrough.js

	
 *******************************************
         Test : jstests/basic9.js ...
 m30999| 2013-11-15T06:17:45.775+0000 [conn1] DROP: test.foo_basic9
 m30999| 2013-11-15T06:17:45.775+0000 [conn1] 	drop going to do passthrough
 m30001| 2013-11-15T06:17:45.776+0000 [conn76] CMD: drop test.foo_basic9
 m30001| 2013-11-15T06:17:45.777+0000 [conn76] creating index with info @ 1:1cbc418
 m30001| 2013-11-15T06:17:45.777+0000 [conn76] build index on: test.foo_basic9 properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "test.foo_basic9" }
 m30001| 2013-11-15T06:17:45.777+0000 [conn76] build index done.  scanned 0 total records. 0 secs
doing save with { "$foo" : 5 }
{
	"singleShard" : "localhost:30001",
	"err" : "Document can't have $ prefixed field names: $foo",
	"code" : 13511,
	"n" : 0,
	"connectionId" : 76,
	"ok" : 1
}
assert: did not throw exception: key names aren't allowed to start with $ doesn't work

Comment by Eric Milkie [ 14/Nov/13 ]

Looks like the issue is that update_replace.js is doing this:

DBCollection.prototype._validateForStorage = function() {};

And isn't restoring that function when the test is done.

Comment by Githook User [ 14/Nov/13 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-11700: more diagnostics
Branch: master
https://github.com/mongodb/mongo/commit/103da34ddbc32d8345655471fc46afc6352a6624

Comment by Eric Milkie [ 14/Nov/13 ]

Note that basic9.js has failed in the parallel suite as well:
http://buildlogs.mongodb.org/mci_0.9_osx_108_cxx11_debug/builds/9307/test/parallel_0/basic.js

And basic3.js, which is testing a similar code path, has failed in a similar way in the parallel suite too.

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