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

Deprecate com.mongodb.WriteResult#getLastError methods

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.12.0
    • None
    • API

    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

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            uladzimir_mihura@epam.com Uladzimir Mihura
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: