Operational Defect Database

BugZero found this defect 2380 days ago.

MongoDB | 417999

[SERVER-30739] config_server_checks.js should assert if initial replSetConfig fails

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.6.18

4.0.18

Description:

Info

The config_server_checks.js test runs rst.nodes[0].adminCommand( {replSetInitiate: conf} ); We expect this to cause a network exception due to the node removing itself, but if it does not we should check the result of the command and assert if it is not OK. Otherwise it will fail in expectState(rst, ReplSetTest.State.REMOVED); which makes it harder to see that the problem was that the initiate failed, not that the node didn't become REMOVED.

Top User Comments

xgen-internal-githook commented on Sun, 5 Apr 2020 21:47:33 +0000: Author: {'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'} Message: SERVER-30739 config_server_checks.js should assert if initial replSetConfig fails (cherry picked from commit 3c97892206735c532cfeda0c0cb045c2b1f2758a) Branch: v3.6 https://github.com/mongodb/mongo/commit/e51b87a83be5f8f199eb4a25c4d94aec7055cd96 xgen-internal-githook commented on Fri, 3 Apr 2020 19:57:53 +0000: Author: {'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'} Message: SERVER-30739 config_server_checks.js should assert if initial replSetConfig fails Branch: v4.0 https://github.com/mongodb/mongo/commit/3c97892206735c532cfeda0c0cb045c2b1f2758a cramaechi commented on Sat, 30 Dec 2017 23:16:04 +0000: Hi Everyone, My proposed change would be to add the following line of code: assert.commandWorked(rst.nodes[0].adminCommand({replSetInitiate: conf})); immediately after the try-catch block but before expectState(rst, ReplSetTest.State.REMOVED). If everyone is in agreement, I will be more than happy to open a pull request. Please share your thoughts! Best Regards, Chibuikem Amaechi

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:

...