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

Deprecate all WriteResult methods that lazily call getLastError

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • API

    Description

      There methods are inherently unreliable because they can not guarantee that the getlasterror call will return the result of the write that it claims to. It's entirely possible that another write got through on the same socket in between.

      While this can currently work in concert with DB.requestStart/requestDone (since it guarantees exclusive use of the socket by one thread), that will no longer be the case if the driver implements support for SERVER-9038.

      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: