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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11
    • Affects Version/s: None
    • Component/s: Monitoring
    • None

      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

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

              Created:
              Updated:
              Resolved: