Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2063

Handle write errors differently depending on whether the outcome is known

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: Retryability
    • None
    • Needed

      When a driver attempts to send a write command to the server, there are circumstances in which it is always safe to retry, e.g. a server selection error, a DNS error, a network error while writing to the socket, or a server error such as NotMaster or InterruptedDueToShutdown. In other cases the write can only be retried if the write satisfies the criteria in the Retryable Writes Spec, e.g. a network error while awaiting the server reply.

      Consider improvements to driver error handling that accounts for the difference between these two categories of error.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: