[JAVA-908] Support write concern for findAndModify helpers Created: 31/Jul/13  Updated: 27/May/22  Resolved: 30/Oct/15

Status: Closed
Project: Java Driver
Component/s: Write Operations
Affects Version/s: None
Fix Version/s: 2.14.0, 3.2.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-6558 findAndModify should take a write con... Closed
is depended on by DRIVERS-224 Implement findAndModify writeConcern ... Closed
Epic Link: MongoDB 3.2
Server Compat: 3.1

 Description   

The server is going to add support for write concern in findAndModify, so the driver needs to ensure that the write concern is added to the message.



 Comments   
Comment by Jeffrey Yemin [ 07/Dec/15 ]

The 3.2.0 driver, which contains a fix for this issue, has been released today.

Comment by Githook User [ 30/Oct/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-908: Ignore write concern test for findAndModify for server versions that don't support it
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/54b996dae6947d8e9e44f24687c1e29b6a5a4c86

Comment by Githook User [ 30/Oct/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-908: Added @throws annotations to DBCollection findAndModify helper methods
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/82ce6076721ab1b6a4a7555b81d643320dc577f2

Comment by Githook User [ 29/Oct/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-908: Support write concern for findAndModify command

Throw exception from findAndModify-related operations if the response contains a write concern error
Support write concern for findAndModify-related helper methods in DBCollection
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/942e1bd8db9c8865b9f992e272403de1675de10b

Comment by Githook User [ 26/Oct/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-908: Add findAndModify method overloads with WriteConcern
Branch: 2.x
https://github.com/mongodb/mongo-java-driver/commit/a24667866ecf7e4527ac1b33ab446d65a4dc4c2e

Comment by Githook User [ 26/Oct/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-908: Include writeConcern in findandmodify command, and check for writeConcernError in the response
Branch: 2.x
https://github.com/mongodb/mongo-java-driver/commit/d0062b2404a462e7bb7556636e493850335eff60

Comment by Githook User [ 26/Oct/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-908: Refactor findAndModify implementation in DBCollection to support sending a WriteConcern
Branch: 2.x
https://github.com/mongodb/mongo-java-driver/commit/9fc4c7e9dfc1e7ac5f634d6360ce2e7de6420940

Comment by Jeffrey Yemin [ 22/Oct/15 ]

Re-opening for 2.14 implementation

Comment by Githook User [ 22/Oct/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added WriteConcern support to find and modify operations

JAVA-908
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/3b4453e69da9ae125911786950cb4d328d8076d6

Generated at Thu Feb 08 08:53:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.