Operational Defect Database

BugZero found this defect 2530 days ago.

MongoDB | 367602

[SERVER-28486] backup_restore.js should wait for FSM and CRUD operations to complete on all secondaries before getting current primary

Last update date:

10/30/2017

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.4.11

3.5.5

Description:

Info

After stopping the FSM and CRUD clients, this test should call ReplSetTest.awaitReplication() before querying the current primary with awaitNodesAgreeOnPrimary() and getPrimary(): jstests/noPassthrough/libs/backup_restore.js:360 backup_restore.js 354 // Wait up to 5 minutes until the new hidden node is in state SECONDARY. 355 rst.waitForState(hiddenNode, ReplSetTest.State.SECONDARY); 356   357 // Wait for secondaries to finish catching up before shutting down. 358 rst.awaitNodesAgreeOnPrimary(); 359 primary = rst.getPrimary(); 360 assert.writeOK(primary.getDB("test").foo.insert( 361 {}, {writeConcern: {w: rst.nodes.length, wtimeout: 10 * 60 * 1000}})); 362   363 // Stop set. 364 rst.stopSet(); 365

Top User Comments

xgen-internal-githook commented on Mon, 30 Oct 2017 19:39:24 +0000: Author: {'email': 'benety@mongodb.com', 'name': 'Benety Goh', 'username': 'benety'} Message: SERVER-28486 backup_restore.js waits for FSM and CRUD operations to complete before getting primary (cherry picked from commit 25562f3145033c8a63df8831c26e9525341ab0d4) Branch: v3.4 https://github.com/mongodb/mongo/commit/b1f3343e2fb94a7cee47d0c4ed27c0f5c845376f xgen-internal-githook commented on Fri, 24 Mar 2017 20:19:55 +0000: Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'} Message: SERVER-28486 backup_restore.js waits for FSM and CRUD operations to complete before getting primary Branch: master https://github.com/mongodb/mongo/commit/25562f3145033c8a63df8831c26e9525341ab0d4

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:

...