Skip to content

Maintenance: Expire Snapshots Action #1454

Closed

Description

@cmcarthur

Is your feature request related to a problem or challenge?

Implement an ExpireSnapshotsAction with similar configuration options and outputs to the Spark expire snapshots procedure. Part of #1453.

Describe the solution you'd like

An expire snapshots action that takes the following inputs:

  • older_than_ms: A timestamp in milliseconds, specifying the retention window for snapshots
  • retain_last: Minimum number of snapshots to retain
  • max_concurrent_deletes: Maximum number of concurrent file deletions
  • snapshot_ids: A specific list of snapshot IDs to expire
  • dry_run: A flag allowing a preview of snapshot expiry

It is important that this action both write a new metadata version with snapshots expired, and followup and delete any now-unreferenced files. This will keep both the latest metadata and the metadata directory clean.

Willingness to contribute

I can contribute to this feature independently

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions