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

Remove support for unacknowledged writes in the WriteResult class

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0
    • None
    • API, Write Operations
    • None
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: