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

  1. Transaction performing too many operations or reading too much data
  2. Application holding a transaction open while waiting for external I/O
  3. Network latency causing slow round-trips within the transaction
  4. transactionLifetimeLimitSeconds set too low for the workload
  5. Deadlock or contention causing the transaction to stall

Source code references

ErrorCodes::NoSuchTransaction found in 18 locations in the MongoDB server source.

Diagnostic Steps

Related Issues