[SERVER-4641] shard2.js test failing on linux 64-bit build machine Created: 06/Jan/12  Updated: 11/Jul/16  Resolved: 17/Jan/12

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

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

linux 64-bit build


Operating System: Linux
Participants:

 Description   

http://buildbot.mongodb.org/builders/Linux%2064-bit/builds/4040/steps/test_3/logs/stdio

 m30000| Fri Jan  6 12:03:43 [migrateThread] migrate commit flushed to journal for 'test.foo' { num: MinKey } -> { num: 0.0 }
assert: [0] != [1] are not equal : secondary wrong C
Error("Printing Stack Trace")@:0
()@src/mongo/shell/utils.js:37
("[0] != [1] are not equal : secondary wrong C")@src/mongo/shell/utils.js:58
(0,1,"secondary wrong C")@src/mongo/shell/utils.js:84
@/mnt/home/buildbot/slave/Linux_64bit/mongo/jstests/sharding/shard2.js:52
 
Fri Jan  6 12:03:43 uncaught exception: [0] != [1] are not equal : secondary wrong C
 
 m30001| Fri Jan  6 12:03:43 [FileAllocator] done allocating datafile /data/db/shard21/test.1, size: 128MB,  took 0.32 secs
failed to load: /mnt/home/buildbot/slave/Linux_64bit/mongo/jstests/sharding/shard2.js



 Comments   
Comment by Greg Studer [ 17/Jan/12 ]

This may fix other intermittently failing tests where the balancer is explicitly turned off.

Comment by auto [ 17/Jan/12 ]

Author:

{u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: SERVER-4641 make sure stopBalancer() handles case where mongos is actively loading config.settings before stopped : true

Also needed to make other shell utilities that stop the balancer safer
Branch: master
https://github.com/mongodb/mongo/commit/222af62133b202cf97ff555a93695c6693c9e3e2

Comment by Greg Studer [ 06/Jan/12 ]

It's a race condition with stopBalancer() - it's possible for the balancer to read the non-stopped config.settings before creating a lock, then stopBalancer() assumes there's no mongos b/c there's no lock. Working on a fix...

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