Skip to content
Settings

POINT_IN_TIME_AFTER_CONSISTENCY_TIME — the requested instant is later than the consistency time

cyoda-go version 0.9.0

errors.POINT_IN_TIME_AFTER_CONSISTENCY_TIME

Section titled “errors.POINT_IN_TIME_AFTER_CONSISTENCY_TIME”

POINT_IN_TIME_AFTER_CONSISTENCY_TIME — a read asked for an instant later than the consistency time.

HTTP: 400 Bad Request. Retryable: no (as sent).

A read with pointInTime returns 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.

The problem’s properties.consistencyTime carries the current consistency time. Read at that instant or earlier. To read “as of now” with a stable answer, take the consistency time from GET /api/entity/consistency-time and pass it as pointInTime; a read at that value is never refused with this code (a 503 is still possible). For a genuinely future instant, wait until the consistency time reaches it and re-issue the read. Over gRPC the message text carries the consistency time, since the envelope has no properties; or call EntityConsistencyTimeGetRequest.

  • errors
  • errors.CONSISTENCY_TIME_UNAVAILABLE
  • crud
  • search
  • 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 CONSISTENCY_TIME_UNAVAILABLE — 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.
  • 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 in LOCKED state. All write operations run within a Cyoda transaction and return a transactionId alongside the affected entity IDs.
  • cyoda help search — Search operates against a specific entity model (entityName, modelVersion). Two modes are supported: