[JAVA-1225] Remove support for unacknowledged writes in the WriteResult class Created: 13/May/14  Updated: 10/Jun/14  Resolved: 10/Jun/14

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

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

Issue Links:
Depends
depends on JAVA-900 Deprecate com.mongodb.WriteResult#get... Closed
Backwards Compatibility: Major Change

 Description   

Removed support for unacknowledged writes in the WriteResult class that was deprecated in 2.12.0.

Additionally, all DBCollection methods that return a WriteResult will return null if the write was unacknowledged. If you need any of the properties of WriteResult, use acknowledged write concern, e.g. ACKNOWLEDGED, REPLICA_SAFE, etc.

If the write results in an error, methods that return a WriteResult with throw an exception.


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