[SERVER-17096] Test "replsets/resync.js" should ensure first node is always primary Created: 28/Jan/15  Updated: 18/Sep/15  Resolved: 03/Feb/15

Status: Closed
Project: Core Server
Component/s: Replication, Testing Infrastructure
Affects Version/s: 3.0.0-rc7
Fix Version/s: 3.0.0-rc8, 3.1.0

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:
Linked BF Score: 0

 Description   

Sometimes this test fails due to the fact that first (0th) node isn't primary.

assert failed : conns[0] assumed to be master
Error: assert failed : conns[0] assumed to be master
    at Error (<anonymous>)
    at doassert (src/mongo/shell/assert.js:11:14)
    at assert (src/mongo/shell/assert.js:20:5)
    at /data/mci/shell/src/jstests/replsets/resync.js:27:5
    at /data/mci/shell/src/jstests/replsets/resync.js:87:3
...
failed to load: /data/mci/shell/src/jstests/replsets/resync.js



 Comments   
Comment by Githook User [ 04/Feb/15 ]

Author:

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

Message: SERVER-17096: ensure first node primary in resync.js test

(cherry picked from commit da92a96cecad44341d649dc8f893055b64f17c9d)
Branch: v3.0
https://github.com/mongodb/mongo/commit/36df4768baea9b5d3aeb3a07371b0b2f1de01766

Comment by Githook User [ 03/Feb/15 ]

Author:

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

Message: SERVER-17096: ensure first node primary in resync.js test
Branch: master
https://github.com/mongodb/mongo/commit/da92a96cecad44341d649dc8f893055b64f17c9d

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