Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-260

Consider preserving partial results in BulkWriteFailures

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In insert_many, we discard any partial results we've accumulated when we return BulkWriteFailures, since it is optional to report them per the crud spec. It may be surprising to users that their operation reported as failing when in fact it was mostly successful (imagine a large batch where there was a single write error).

      We should consider reporting these partial results to users, so that even in the event an error is encountered, they can see how their data was modified.

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: