Skip to content
Settings

TX_NO_STATE — transaction has no state record

cyoda-go version 0.6.2

TX_NO_STATE — the transaction coordinator cannot find a state record for the given transaction ID.

HTTP: 404 Not Found. Retryable: no.

The two-phase commit coordinator tracks per-transaction state (prepared, committed, aborted). This error is returned when a commit or abort instruction references a transaction for which no state record exists, because the transaction was never prepared or was already cleaned up.

Not retryable. prepare must be called before commit or abort. The coordinator’s state retention configuration determines how long state records are kept.

  • errors
  • errors.TX_REQUIRED
  • errors.TX_COORDINATOR_NOT_CONFIGURED
  • errors.TRANSACTION_NOT_FOUND
  • cyoda help errors — Every error response from the Cyoda REST API carries a structured errorCode in the properties object. Multiple codes may share the same HTTP status. Programmatic handling keys on errorCode, not HTTP status.
  • cyoda help errors TX_REQUIRED — Certain write operations that require atomic multi-step coordination mandate a transaction context. Returned when such an operation is called without a transactionId header or query parameter.
  • cyoda help errors TX_COORDINATOR_NOT_CONFIGURED — Certain operations that span multiple storage shards require a distributed transaction coordinator. This error is returned when such an operation is attempted on a node where the coordinator component is disabled or misconfigured.
  • cyoda help errors TRANSACTION_NOT_FOUND — The transaction ID supplied in the request does not correspond to an active transaction. The transaction may have been committed, rolled back, expired, or may never have existed. Also occurs when a request is mis-routed to a node that never opened the transaction.