[JAVA-900] Deprecate com.mongodb.WriteResult#getLastError methods Created: 25/Jul/13  Updated: 13/May/14  Resolved: 10/Feb/14

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 2.12.0

Type: Task Priority: Major - P3
Reporter: Uladzimir Mihura Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: 2to3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by JAVA-1225 Remove support for unacknowledged wri... Closed
Duplicate
is duplicated by JAVA-776 Deprecate getLastError methods on Wri... Closed
is duplicated by JAVA-846 Deprecate all WriteResult methods tha... Closed

 Description   

In driver 2.x

Invoked a getLastError command on a same connection on which the previous operation was invoked, but could fail if the connection had been "stolen" by another operation..

In driver 3.x

Writes with WriteConcern stronger than WriteConcern.UNACKNOWLEDGED throws MongoException.

That's why to keep compatibility - deprecate WriteResult.getLastError



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

Author:

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

Message: JAVA-900: Deprecate the remaining getLastError-related methods in WriteResult.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/49e6d903f5232edd362e0b6c82ba24e40223b377

Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'trnl', u'name': u'Uladzimir Mihura', u'email': u'trnl.me@gmail.com'}

Message: JAVA-900: deprecate c.m.WriteResult.getLastError(WriteConcern)
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d1e1c0d54f3ae472736e573e1a0d1961bada8b63

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