Skip to content

[Data][4/4] Enable checkpoint recovery for Iceberg Appends - #66505

Closed
smortime wants to merge 10 commits into
ray-project:masterfrom
smortime:smortimer/enable-iceberg-checkpointing
Closed

smortime wants to merge 10 commits into
ray-project:masterfrom
smortime:smortimer/enable-iceberg-checkpointing

Conversation

@smortime

@smortime smortime commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Enable checkpoint recovery for Iceberg APPEND writes. Workers publish row-ID checkpoints after writing data files, then the driver promotes them only after confirming an operation-marked Iceberg snapshot. Definite pre-commit failures discard pending checkpoints and recompute rows, while ambiguous successful commits recover from the snapshot marker without appending duplicates.

Related issues

Related to #59870

Additional information

Iceberg Checkpointing Stack:

@smortime
smortime requested review from a team as code owners September 26, 2026 06:08

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces job-level checkpointing support for Iceberg writes in APPEND mode in Ray Data. It adds IcebergCheckpointDatasink to coordinate row checkpoints with Iceberg snapshot commits, along with IcebergCheckpointState to manage operation-level checkpoint states. The planner is updated to route Iceberg writes to a pending checkpoint transform, and load_checkpoint is modified to exclude pending files during restoration. The feedback focuses on optimizing filesystem I/O during checkpoint resolution by batching get_file_info calls and passing pre-listed checkpoints to promote_operation and discard_operation to avoid redundant directory listings and multiple filesystem roundtrips.

@smortime smortime changed the title Smortimer/enable iceberg checkpointing [Data][4/4] Enable checkpoint recovery for Iceberg Appends Sep 26, 2026
@ray-gardener ray-gardener Bot added data Ray Data-related issues community-contribution Contributed by the community labels Sep 26, 2026
richardliaw pushed a commit that referenced this pull request Sep 30, 2026
…oint restore (#66387)

## Description

During checkpoint restoration, instead of passing the entire checkpoint
directory, which may contain pending files, pass only the committed
`.parquet`.

## Related issues

Related to #59870

## Additional information

This isn't directly part of supporting iceberg checkpointing, but was
teased out of the implementation / added first, so it can be merged
without concern of iceberg-related items.

Stack:
- #66387 (you are here)
- #66503
- #66504
- #66505

Signed-off-by: Schuyler Mortimer <[email protected]>
Signed-off-by: Schuyler Mortimer <[email protected]>
Signed-off-by: Schuyler Mortimer <[email protected]>
Signed-off-by: Schuyler Mortimer <[email protected]>
Signed-off-by: Schuyler Mortimer <[email protected]>
@smortime
smortime force-pushed the smortimer/enable-iceberg-checkpointing branch from bb42e25 to ebc4528 Compare October 2, 2026 18:36
@yujiabin123

Copy link
Copy Markdown

Congratulations on landing [1/4] (#66387)!

I've been following this series closely — I filed #66491 after hitting the same problem on the Paimon side: row checkpoints are persisted right after Datasink.write() returns, but a Paimon snapshot is only committed later in on_write_complete() on the driver, so a failure in between leaves rows checkpointed but never committed (and silently dropped on resume).

Paimon maps well onto the protocol taking shape here: snapshots carry a native commit identity (commit_user + commit_identifier, analogous to Iceberg's generation marker), and write tasks already return CommitMessages that parallel IcebergWriteResult. The main open question for Paimon is the serializable write-result artifact, as noted in the issue.

Happy to help bring this pattern to Paimon once the rest of the stack lands — glad to start on a PR following the same structure if that would be useful.

nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…oint restore (ray-project#66387)

## Description

During checkpoint restoration, instead of passing the entire checkpoint
directory, which may contain pending files, pass only the committed
`.parquet`.

## Related issues

Related to ray-project#59870

## Additional information

This isn't directly part of supporting iceberg checkpointing, but was
teased out of the implementation / added first, so it can be merged
without concern of iceberg-related items.

Stack:
- ray-project#66387 (you are here)
- ray-project#66503
- ray-project#66504
- ray-project#66505

Signed-off-by: Schuyler Mortimer <[email protected]>
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Oct 17, 2026
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no more activity in the 14 days
since being marked stale.

Please feel free to reopen or open a new pull request if you'd still like this to be addressed.

Again, you can always ask for help on our discussion forum or Ray's public slack channel.

Thanks again for your contribution!

@github-actions github-actions Bot closed this Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community data Ray Data-related issues stale The issue is stale. It will be closed within 7 days unless there are further conversation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants