Remove assertion for verbose results

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • 5.6.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      When the server responds to a bulk write command with errorsOnly: true, it may still return cursor elements for successful writes (see SERVER-113344).
      Currently, the Java driver asserts that no elements are present, causing an AssertionError.

      The driver should tolerate this case by ignoring any successful results in the cursor instead of failing.

      Acceptance Criteria:

      • Remove the assertion in the bulk write result parser when verboseResults(false) / errorsOnly: true.
      • Log or silently ignore unexpected cursor entries instead of throwing.

            Assignee:
            Unassigned
            Reporter:
            Slav Babanin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: