Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1225

Remove support for unacknowledged writes in the WriteResult class

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: API, Write Operations
    • Labels:
      None
    • Major Change

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: