[JAVA-276] findAndModify does not throw MongoException on error, fails silently Created: 18/Feb/11  Updated: 21/Mar/11  Resolved: 18/Feb/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5, 2.5.1

Type: Improvement Priority: Major - P3
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

right now it just returns res.get("value");
it needs to call res.throwOnError() before.



 Comments   
Comment by auto [ 16/Mar/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-276: findAndModify should eat error on no matched doc, until server is fixed
https://github.com/mongodb/mongo-java-driver/commit/496d32627310bbfd4144fef8652c6ceacdaed39d

Comment by auto [ 18/Feb/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-276: findAndModify does not throw MongoException on error, fails silently
https://github.com/mongodb/mongo-java-driver/commit/b1a588dbc33e2cd39177000d0b0df01955f26af1

Comment by Antoine Girbal [ 18/Feb/11 ]

done and added test

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