Operational Defect Database

BugZero found this defect 2527 days ago.

MongoDB | 367547

[SERVER-28480] last_vote.js should use ReplSetTest::stepUp() on node 1 before reconfig

Last update date:

12/6/2017

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.4.5

3.5.6

Description:

Info

Preventing node 0 from running for election for 5 seconds before doing a reconfig is not enough time to ensure node 1 is elected. We also do not do any waitForState on node 1 to make sure it is actually primary. To address this we should increase the timeout in the stepdown before node 0 is able to become primary and actually wait for node 1 to become primary before doing the reconfig. We can then use a replSetFreeze: 0 to reset the election timeout on node 0. Using ReplSetTest::stepUp could fix this. We also should make sure node 1 is actually elected primary before doing the reconfig. Asserting that node 0 is secondary is not enough.

Top User Comments

xgen-internal-githook commented on Thu, 20 Apr 2017 22:10:56 +0000: Author: {u'name': u'Ramon Fernandez', u'email': u'ramon@mongodb.com'} Message: SERVER-28480 / SERVER-27966 last_vote.js should await replication and call stepUp before reconfig This reverts commit 888390515874a9debd1b6c5d36559ca86b44babd. Branch: v3.4 https://github.com/mongodb/mongo/commit/b07e725a56e26e191d340714bfcd6d2bffc6b67c xgen-internal-githook commented on Thu, 20 Apr 2017 21:47:14 +0000: Author: {u'name': u'Ramon Fernandez', u'email': u'ramon@mongodb.com'} Message: Revert "SERVER-28480/27966 last_vote.js should await replication and call stepUp before reconfig" This reverts commit 7a6d8274f57cf141fd1d5c754ea1e2a1a6d2f372. Branch: v3.4 https://github.com/mongodb/mongo/commit/888390515874a9debd1b6c5d36559ca86b44babd xgen-internal-githook commented on Mon, 17 Apr 2017 16:25:52 +0000: Author: {u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'} Message: SERVER-28480/27966 last_vote.js should await replication and call stepUp before reconfig (cherry picked from commit 83ea6f6274b6f5f525569e72e278872886a3d70c) Branch: v3.2 https://github.com/mongodb/mongo/commit/751ecf3955279a81cb961fe09a6fd5e411f8e29b xgen-internal-githook commented on Mon, 17 Apr 2017 15:39:45 +0000: Author: {u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'} Message: SERVER-28480/27966 last_vote.js should await replication and call stepUp before reconfig (cherry picked from commit 83ea6f6274b6f5f525569e72e278872886a3d70c) Branch: v3.4 https://github.com/mongodb/mongo/commit/7a6d8274f57cf141fd1d5c754ea1e2a1a6d2f372 xgen-internal-githook commented on Wed, 5 Apr 2017 15:37:39 +0000: Author: {u'username': u'will62794', u'name': u'William Schultz', u'email': u'william.schultz@mongodb.com'} Message: SERVER-28480/27966 last_vote.js should await replication and call stepUp before reconfig Branch: master https://github.com/mongodb/mongo/commit/83ea6f6274b6f5f525569e72e278872886a3d70c

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...