251 — NoSuchTransaction
transactiontimeout
The transaction exceeded the configured lifetime limit
What is happening?
TransactionExceededLifetimeLimitSeconds is returned when a multi-document transaction has been running longer than the transactionLifetimeLimitSeconds server parameter (default: 60 seconds). MongoDB aborts transactions that exceed this limit to prevent resource exhaustion.
Common causes
- Transaction performing too many operations or reading too much data
- Application holding a transaction open while waiting for external I/O
- Network latency causing slow round-trips within the transaction
- transactionLifetimeLimitSeconds set too low for the workload
- Deadlock or contention causing the transaction to stall