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

Allow access to the list of operations in the BulkWriteOperation class

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.12.4
    • Write Operations
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alex.komyagin@mongodb.com Alexander Komyagin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: