CONSISTENCY_TIME_UNAVAILABLE — the store could not provide a consistency time in time
cyoda-go version 0.9.0
errors.CONSISTENCY_TIME_UNAVAILABLE
Section titled “errors.CONSISTENCY_TIME_UNAVAILABLE”CONSISTENCY_TIME_UNAVAILABLE — the store could not certify a consistency time within its wait budget.
SYNOPSIS
Section titled “SYNOPSIS”HTTP: 503 Service Unavailable. Retryable: yes.
DESCRIPTION
Section titled “DESCRIPTION”To give a consistency time, the store waits for your tenant’s saves that are in their commit phase to finish. That normally takes milliseconds. When a save stays in its commit phase longer than the store’s wait budget, the request is refused rather than answered with an instant that could still change. The budget is 10 seconds on postgres (or CYODA_POSTGRES_STATEMENT_TIMEOUT when lower) and up to the engine’s 11-second store-call deadline on sqlite; memory never waits. A read returns nothing; an async search submit creates no job.
Raised by GET /api/entity/consistency-time, by an async search submitted without pointInTime, and by any read with a pointInTime that is not already known to be at or before the consistency time. No Retry-After header is sent; retry with back-off, for example starting at 100 ms and doubling. Repeated occurrences mean a commit is stalling — for example a node that died mid-commit; on postgres such a session ends within seconds.
SEE ALSO
Section titled “SEE ALSO”- errors
- errors.POINT_IN_TIME_AFTER_CONSISTENCY_TIME
- errors.STORAGE_UNAVAILABLE
- crud
See also
Section titled “See also”cyoda help errors— Every error response from the Cyoda REST API carries a structurederrorCodein thepropertiesobject. Multiple codes may share the same HTTP status. Programmatic handling keys onerrorCode, not HTTP status.cyoda help errors POINT_IN_TIME_AFTER_CONSISTENCY_TIME— A read withpointInTimereturns the data as at that instant, and that answer never changes afterwards. That holds only for an instant at or before the consistency time: the instant up to which every save is final. A later instant could still gain saves, so the read is refused instead of answered. An instant at or before the store’s clock is never refused: the store waits for the saves still committing. Only an instant later than the store’s clock is refused — a future instant, or one from a client clock running ahead of the store’s.cyoda help errors STORAGE_UNAVAILABLE— Raised in three cases, all transient:cyoda help crud— Entities are instances of models. Each entity has a UUID, a model reference (entityName,modelVersion), and a lifecycle state managed by the workflow engine. Creating an entity requires the referenced model to be inLOCKEDstate. All write operations run within a Cyoda transaction and return atransactionIdalongside the affected entity IDs.
Raw formats
Section titled “Raw formats”/help/errors/consistency_time_unavailable.json— full descriptor (matchesGET /help/{topic}envelope)/help/errors/consistency_time_unavailable.md— body only