Use bson_error_t message for BulkWriteException message

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.1.6
    • Affects Version/s: 1.1.4
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Per SPEC-340, we can rely on libmongoc to merge multiple write and write concern error messages into the bson_error_t message, which is populated by a failed write execution.

      While the bson_error_t message is statically allocated to ~500 bytes, that should be sufficient for a meaningful error message. Users can always inspect the attached WriteResult for full error information. This will allow us to delete code that concatenated error messages (PHPC-506).

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: