Distributed Transaction and Partial-Workflow Failures
A multi-service operation partially completes; the system does not reach a consistent business state after a step fails.
Failure explanation
A business workflow spans multiple services that cannot share one atomic database transaction. One step succeeds while a later step fails, leaving the business process in a partially completed state. Without durable workflow state, compensating actions, and recovery logic, resources may be charged, reserved, or created without the corresponding downstream action.
Example
An order service charges a card, then the inventory service times out before reserving stock. The customer is charged but the order remains unfulfillable.
How to test
- Inject a failure after each workflow step.
- Test timeouts where the downstream outcome is unknown, duplicate messages, service restarts, and compensation failures.
- Inspect durable workflow state and reconciliation behavior.
- Verify that retries resume safely rather than restarting completed steps.
Expected behavior
The workflow reaches a valid terminal state or remains recoverable with explicit status and compensating actions. The API communicates pending, failed, or compensated outcomes accurately.
Runnable examples
Each example includes a broken server, a fixed server, an OpenAPI spec, and a clrsig scenario that detects the failure.
Learn how to find and fix it
In the field
- STORY-020 primary The Order That Was Paid For but Never Shipped
- STORY-025 related The HTTP 200 That Made a Failed Transfer Look Successful
- STORY-029 related The Bulk Request That Was Only Partially Successful
- STORY-039 related The Older Event That Reopened a Completed Shipment
- STORY-040 related The Invoice Header That Survived Without Its Line Items