Error
Error Code:
287
MongoDB Error 287: Transaction Deadline Task Canceled
Description
Error 287 indicates that a multi-document transaction being coordinated by MongoDB's Transaction Coordinator was terminated because a defined deadline was exceeded or the task was explicitly canceled. This typically occurs in distributed environments like replica sets or sharded clusters, signaling issues with transaction completion within expected timeframes.
Error Message
Transaction Coordinator Deadline Task Canceled
Known Causes
4 known causesNetwork Latency or Disruption
High network latency or intermittent network disruptions can prevent transaction participants from communicating with the coordinator within the deadline.
Server Resource Contention
High CPU, memory, or disk I/O on participating nodes can cause delays, preventing transaction operations from completing before the deadline.
Protracted Transaction Operations
Individual operations within the transaction taking too long to acquire locks or execute can exceed the overall transaction deadline.
Inadequate Transaction Timeout
The configured transaction timeout (`transactionLifetimeLimitSeconds`) might be too short for the complexity or expected duration of the transaction in the current environment.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service