TECHNOLOGY

Ray lineage reconstruction: every dependency needs a recovery path

In this article
THE QUICK TAKE

A retryable producer is insufficient when its lost inputs cannot be reconstructed or its owner and lineage are no longer available.

A lost intermediate can be recomputed, but its producer depends on another lost array placed into Ray by the driver. Increasing producer retries does not create the missing input. Lineage recovery must be reviewed as a graph of dependencies, rather than a property of the final task alone.

Draw the reconstructable graph

For each valuable output, record its producing task, arguments and their origins. The object fault-tolerance guide describes finding existing copies first, then re-executing a producing task and recursively reconstructing arguments. Mark values introduced through ray.put separately from task outputs. A producer’s existence is not sufficient when a required ancestor has no recoverable production path. Keep the object’s owner identified as another required live dependency.

Find the non-task roots

The documented lineage mechanism cannot reconstruct objects created through ray.put from that operation alone. If such a root disappears with all copies, downstream deterministic tasks still lack their input. Preserve essential roots in independent durable storage and define how the application can start a new graph from that identity. The immutable revision publication guide describes an adjacent artifact boundary; it does not turn a previously lost ObjectRef into a valid reference again.

Make recomputation mean the same work

The object guide defines immutable remote values, while reconstruction assumes deterministic, idempotent tasks. A task reading a mutable external path can produce a different value when rerun despite using unchanged arguments. Pin source revisions and record relevant parameters. External writes need a separate effect protocol. A reconstruction retry is not a rollback, and a recovered array should be checked against the expected logical input rather than accepted because the task returned normally.

Review the retained recovery metadata

The fault guide bounds reconstruction by retry configuration and retained lineage, and describes lineage eviction under its memory limit. Document the effective settings and memory tradeoff for the graph instead of assuming its history is permanent. Actor outputs have additional retry conditions. Compare this with explicit Tune checkpoints: a checkpoint can be an application persistence boundary, whereas lineage is runtime metadata that enables selected re-execution while its requirements remain satisfied.

Exercise transitive loss deliberately

Prepare a disposable graph with a task-generated root and another with an unrecoverable in-memory root. Contrast loss of one replica with loss of every copy while keeping ownership conditions explicit. Record producer executions, input identities and exact retrieval errors. Acceptance should explain which graph reconstructs and why the other cannot. These are proposed failure fixtures; no node-loss experiment or performance measurement is claimed to have been performed on a production cluster.

State the recovery promise narrowly

Publish a recovery matrix naming required live owners, retained lineage, recoverable roots and retry behavior. Reconstruction success for one result does not establish durability of an entire evaluation or its external effects. When the application needs restart after owner or cluster loss, preserve independent artifact identities and explicit continuation state. The useful promise is that specified transient data loss has a valid recomputation path, not that every value held in a distributed object store is automatically recoverable forever.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles