Populate error labels for bulk write exceptions

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.6.0alpha1, 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Related to PHPC-1222, with comments:

      https://github.com/mongodb/mongo-php-driver/pull/870/files#r199523353

      If I understand correctly, this test was only using executeCommand() so that you could inspect the error label by calling CommandException::getResultDocument(). I think this should be rewritten to execute a bulk write and then call hasErrorLabel on the BulkWriteException.

      Instead of updating the test case, it should be a clone with modifications.

              Assignee:
              Derick Rethans
              Reporter:
              Derick Rethans
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: