[SERVER-12696] bulk api writeconcern cleanup Created: 12/Feb/14  Updated: 11/Jul/16  Resolved: 13/Feb/14

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell, Write Ops
Affects Version/s: None
Fix Version/s: 2.6.0-rc0

Type: Task Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

The current implementation of the WriteConcern object has a few issues:

  • forces j to true/false
  • forces w to 1 if undefined
  • converts wtimeout to a number
  • always sends all fields even if not set (defaults to values above)
  • can't add arbitrary options
  • validation is poor
  • missing fsync support (not so important once we allow arbitrary options)
  • doesn't inherit from collection if not overridden
  • isn't settable on DB

This causes various problems as all defaults should be handled at the server, not client, and the client should be able to pass arbitrary options.



 Comments   
Comment by Githook User [ 13/Feb/14 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-12696: writeconcern plumbing to db/bulk
Branch: master
https://github.com/mongodb/mongo/commit/b3ec192e4991677e446e98f6e5c70d04d6a167ab

Comment by Githook User [ 13/Feb/14 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-12696: cleanup bulk api writeconcern
Branch: master
https://github.com/mongodb/mongo/commit/69ad51c4b8d70b5e17b3104a659e4407305f7b63

Generated at Thu Feb 08 03:29:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.