[SERVER-4921] replica_set_shard_version.js failing in V8 build Created: 09/Feb/12  Updated: 11/Jul/16  Resolved: 28/Feb/12

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

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux V8


Issue Links:
Depends
depends on SERVER-5130 Cannot initialize shard without primary Closed
Duplicate
is duplicated by SERVER-5075 Error in replica_set_shard_version test Closed
Related
related to SERVER-5128 First query via mongos fails with sla... Closed
is related to SERVER-4783 V8 sharding tests taking 10x as long ... Closed
Operating System: ALL
Participants:

 Description   

might just be a timing issue with the slower build machine

Error: Printing Stack Trace
    at src/mongo/shell/utils.js:37:7
    at src/mongo/shell/utils.js:58:1
    at Function.soon (src/mongo/shell/utils.js:163:49)
    at /data/slave/Linux_64bit_v8_Nightly/mongo/jstests/slowNightly/replica_set_shard_version.js:25:8
Thu Feb  9 14:03:57 exec error: src/mongo/shell/utils.js:59 assert.soon failed: function (z){
        iteratioons++;
        try {
            coll.findOne();
            return true;
        }
        catch ( e ){
            return false;
        }
    }, msg:undefined
throw msg;
      ^
 
failed to load: /data/slave/Linux_64bit_v8_Nightly/mongo/jstests/slowNightly/replica_set_shard_version.js

http://buildbot.mongodb.org/builders/Nightly%20Linux%2064-bit%20v8/builds/781/steps/test/logs/stdio



 Comments   
Comment by auto [ 28/Feb/12 ]

Author:

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

Message: SERVER-4921 need to initialize shard object in mongos when master is active
Branch: master
https://github.com/mongodb/mongo/commit/b47d3b6475f8fa78825d34ef6b95e4a0d8ff31b7

Comment by Greg Studer [ 28/Feb/12 ]

better review here for functional change - http://codereview.10gen.com/7438001/

Other review included more comments in general about the test, also a meaningful rename, but unfortunately the move isn't correctly detected by codereview.10gen.com

Comment by Greg Studer [ 28/Feb/12 ]

http://codereview.10gen.com/7424011/

Comment by Greg Studer [ 28/Feb/12 ]

Issue is that the V8 bbot, being slow, doesn't have the balancer run before the stepdown - this means the Shard objects aren't loaded before the stepdown happens - and shards apparently aren't correctly initialized without a master.

Comment by Ian Whalen (Inactive) [ 27/Feb/12 ]

@Greg, assigning to you as Antoine is out for the next 5 days on Training.

Comment by Eric Milkie [ 27/Feb/12 ]

Setting the threshold back to 3 broke the DUR OFF build:

assert: 3 is not less than 3 : undefined
Error("Printing Stack Trace")@:0
()@src/mongo/shell/utils.js:37
("3 is not less than 3 : undefined")@src/mongo/shell/utils.js:58
(3,3)@src/mongo/shell/utils.js:239
@/home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/jstests/slowNightly/replica_set_shard_version.js:60
 
Mon Feb 27 09:16:09 uncaught exception: 3 is not less than 3 : undefined
failed to load: /home/yellow/buildslave/Linux_64bit_DUR_OFF/mongo/jstests/slowNightly/replica_set_shard_version.js

Comment by auto [ 27/Feb/12 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-4921: assert threshold back to 3
Branch: master
https://github.com/mongodb/mongo/commit/10ffadafddaf05a7d451d0802c3c1dafdf8a51f0

Comment by auto [ 24/Feb/12 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-4921: fixing test further
Branch: master
https://github.com/mongodb/mongo/commit/6c93e73dadb508af7dda2fb5834bb4e6cbf3f174

Comment by Antoine Girbal [ 24/Feb/12 ]

further confirmed by testing both SM and V8 that this failure is somehow due to preallocation of the journal.

Comment by auto [ 24/Feb/12 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-4921: fixing test further
Branch: master
https://github.com/mongodb/mongo/commit/7804ea784e5fec0e73fa95dc69f7df0e0c3413a5

Comment by auto [ 21/Feb/12 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-4921: undefined in js
Branch: master
https://github.com/mongodb/mongo/commit/f1b4873140e2b2b00ff5e0b2ac50f990ef04515b

Comment by auto [ 21/Feb/12 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-4921: replica_set_shard_version.js failing in V8 build
Branch: master
https://github.com/mongodb/mongo/commit/0a833687a98638018e0814beefe4f21de5d32c11

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