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

Deprecate all WriteResult methods that lazily call getLastError

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

      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.

            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: