Skip to content

Retention and erasure refactoring candidates #2352

Open

Description

@bplatz

Follow-up from #2280. Candidates, not defects.

  • Within a purge pass, reuse stable state now read repeatedly: job reads, holder discovery, dropped-ledger scans, registration reads, index-collapse inputs. Don't cache across mutations the pass must observe.

  • Consolidate:

    • current-fact lookup, reverse graph maps and graph decoding;
    • the retention writers;
    • the restore and rebuild paths;
    • the two immutable-object union stores (journal checkpoint and erasure map).

    Keep their different ownership and retry contracts.

  • A shared history traversal, where it avoids duplicate reads without decoding every commit at once. Today's oldest-first walks keep only CIDs, which bounds memory.

  • release_dropped: add nested-ledger exclusions if ledger-name validation ever allows an index path segment. Validation prevents it today.

Activity

  1. added
    P3
    area:storage
    on Nov 11, 2026
  2. added this to the 5.0.0 milestone on Nov 12, 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

    P3area:storage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions