Operational Defect Database

BugZero found this defect 2419 days ago.

MongoDB | 402064

[SERVER-30067] Use ensurePrimaryShard instead of movePrimary in mongos_validate_writes.js

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.5.10

Description:

Info

movePrimary can return the error 'it is already the primary' and is asserted in mongos_validate_writes.js. Instead, use ensurePrimaryShard, which handles and ignores this error. It's fine to ignore this error because it means that the goal is already accomplished, which randomly may be the case.

Top User Comments

xgen-internal-githook commented on Tue, 11 Jul 2017 17:36:48 +0000: Author: {u'username': u'DiannaHohensee', u'name': u'Dianna Hohensee', u'email': u'dianna.hohensee@10gen.com'} Message: SERVER-30067 Use ensurePrimaryShard instead of movePrimary in mongos_validate_writes.js Branch: master https://github.com/mongodb/mongo/commit/eb43e76f419566c24624067edc6ae723ac57865f

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:

...