[CDRIVER-957] w=0 with bypassDocumentValidation set must error Created: 23/Oct/15  Updated: 18/Nov/15  Resolved: 23/Oct/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.3.0
Fix Version/s: 1.3.0-beta0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-893 Support bypassDocumentValidation Closed
is related to DRIVERS-250 Support bypassDocumentValidation Closed

 Description   

This is because we will "fallback" to using the OP_INSERT/OP_UPDATE opcodes which don't support this feature.

Had we used the normal write commands, then w=0 would be valid value and valid action.

The decision to error, rather then "upgrade to use write commands and w=0" is due to the fact write commands w=0 latency is dramatically higher than OP_INSERT – and the assumption is that would hurt users more.



 Comments   
Comment by Githook User [ 23/Oct/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-957: w=0 with bypassDocumentValidation set must error
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/eb23d5e7fee18199e262f672dd66380e749f663f

Comment by Hannes Magnusson [ 23/Oct/15 ]

https://mongodbcr.appspot.com/30210003/

Generated at Wed Feb 07 21:11:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.