Allow access to the list of operations in the BulkWriteOperation class

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.12.4
    • Component/s: Write Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      According to the specification, in case of error MongoDB server sends back the index of the failed operation(s): writeError.getIndex(), which can be used on the driver side to identify the appropriate operation in the batch.

      Internally, the BulkWriteOperation class already maintains a list of operations, but currently that list is not exposed to external access. We could simplify the error handling for users by changing that and allowing to get the operation from the BulkWriteOperation object by its index.

            Assignee:
            Unassigned
            Reporter:
            Alexander Komyagin (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: