Skip to content

rust: make ingest deliveries atomic #957

Closed

Description

@athvin

Evidence

A delivery passes all rows to generated raw_record::append_rows, which issues independent 500-row INSERTs. Full refresh then reads omitted keys and inserts tombstones separately. A later error can leave a failed batch partly landed. Source.

Change

Put one source delivery, including its full-refresh tombstones, inside a dedicated lake-catalog transaction. Change the generator if its append primitive needs a transaction-aware interface; do not hand-edit er-entities.

Done when

  • A failure after the first append chunk rolls back every row in the delivery.
  • A failure while computing or appending tombstones rolls back base rows too.
  • A retry after either failure cannot duplicate a partial batch.

Activity

  1. added
    code-cleanup
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions