Skip to content

Add table property to disable snapshot expiration #3246

Closed

Description

@nastra

For tables tracked by the NessieCatalog it makes sense to always disable snapshot expiration and let Nessie itself take care of when to expire snapshots, thus a new property history.expire.enabled in TableProperties is required

Activity

  1. self-assigned this
    on Oct 8, 2021
  2. jackye1995 commented on Oct 11, 2021

    @jackye1995
    Contributor

    why not just set history.expire.max-snapshot-age-ms to Long.MAX_VALUE?

  3. RussellSpitzer commented on Oct 11, 2021

    @RussellSpitzer
    Member

    Don't we also have a GC_ENABLED flag to prevent expire snapshots? I remember this was added so that a table which was created from a snapshot cannot be expired from.

    ValidationException.check(
    PropertyUtil.propertyAsBoolean(base.properties(), GC_ENABLED, GC_ENABLED_DEFAULT),
    "Cannot expire snapshots: GC is disabled (deleting files may corrupt other tables)");

  4. nastra commented on Oct 18, 2021

    @nastra
    ContributorAuthor

    Using the GC_ENABLED flag makes probably sense.

  5. rdblue commented on Nov 24, 2021

    @rdblue
    Contributor

    I'm closing this because GC_ENABLED already implements what we want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions