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

Deprecate com.mongodb.WriteResult#getLastError methods

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.12.0
    • Affects Version/s: None
    • Component/s: API
    • Labels:

      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

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

              Created:
              Updated:
              Resolved: