Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1651

Bulk api does not publish CommandFailed events when commands fail with network errors

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.11
    • Monitoring
    • None

    Description

      The _BulkWriteContext class published a CommandStartedEvent before attempted to send a command, however it only publishes a corresponding CommandFailedEvent when the command fails with a server error. If the command fails with something else besides an OperationFailure, the failure is not published.

      See: https://github.com/mongodb/mongo-python-driver/blob/3.7.1/pymongo/message.py#L919-L928

      Attachments

        Activity

          People

            shane.harvey@mongodb.com Shane Harvey
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: