Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-625

expose CRUD spec mandated information in bulk write API if there is an error

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0
    • Affects Version/s: 1.2.0
    • Component/s: Bulk API, libmongoc
    • None

      When implementing the CRUD spec's error handling portion in the C++11 driver (link: https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#error-handling) i found it was not possible to retrieve the information mandated by the spec in the case a bulk write error.

      That is, in the case of an error it should be possible to retrieve:

      • the requests that were sent to the server
      • the requests that were not sent to the server
      • any errors that the server returned (including the request that triggered the error, and the index of the corresponding request in the original list of requests)

      This would require a fairly large addition to the ABI, but it seems like it could be possible to do in a backwards compatible way.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: