-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
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