[SERVER-45920] Validate writeConcern.w Created: 31/Jan/20  Updated: 29/Oct/23  Resolved: 03/Feb/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Bug Priority: Major - P3
Reporter: Lauren Lewis (Inactive) Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones SERVER-45584 Validate writeConcern.w Closed
Duplicate
is duplicated by SERVER-11674 Write command write concerns paramete... Closed
Problem/Incident
causes PYTHON-2118 Fix texts that use writeConcern.w > 50 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2020-02-10
Participants:

 Description   

We attempt to use numberInt() to load integers from the wire here and here. Both of these should be safeNumberLong() calls instead. The wNumNodes value should also be validated against the maximum amount of nodes in a replica set before it gets downcasted to int.



 Comments   
Comment by Githook User [ 21/Feb/20 ]

Author:

{'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}

Message: Change w value for unsatisfiable write concern in tests (#301)

Comment by Githook User [ 07/Feb/20 ]

Author:

{'username': 'divjotarora', 'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com'}

Message: Change w value for unsatisfiable write concern in tests (#301)

Comment by Githook User [ 03/Feb/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@10gen.com'}

Message: SERVER-45920 Validate writeConcern.w
Branch: master
https://github.com/mongodb/mongo/commit/6527449a3c0d0acba0ace9c421fd0580b4afbffa

Generated at Thu Feb 08 05:10:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.