Skip to content

Data loss

data_lossHTTP 500Retrying the same request will not help

Data was lost or corrupted, and the server could not recover it.

Why it happens

  • Storage failed or returned data that does not make sense.

What to do

  • This needs an operator: check the storage and restore from a backup if needed.

What it looks like

Inside a batch, the operation's frame carries it:

json
{
  "id": 1,
  "error": {
    "code": "data_loss",
    "message": "Stored order o7 is unreadable"
  },
  "fin": true
}

When the whole request is refused over HTTP, the answer is a problem document:

json
{
  "type": "https://eddyboutros.github.io/rayfold/errors/data_loss",
  "title": "data loss",
  "status": 500,
  "detail": "Stored order o7 is unreadable",
  "code": "data_loss"
}

See also all error types and the errors chapter of the specification.

Released under the Apache-2.0 license.