[JAVA-257] when getLastError() is called on a WriteResult, behavior has several flaws Created: 12/Jan/11  Updated: 17/Mar/11  Resolved: 12/Jan/11

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

Type: Bug 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   

1) call may return a cached result that is from a less strict concern, which is dangerous
2) if concern param that is less strict than cached one, then the cached result should be returned, instead of making new getlasterror call



 Comments   
Comment by Antoine Girbal [ 12/Jan/11 ]

fixed and tested by testWriteResultWithGetLastErrorWithDifferentConcerns()

Comment by auto [ 12/Jan/11 ]

Author:

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

Message: JAVA-256: fix all javadoc. Most of it is done now
JAVA-257: when getLastError() is called on a WriteResult, behavior has several flaws
https://github.com/mongodb/mongo-java-driver/commit/c568d9e26829ce3a433fe0ce2109ea95534307bf

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