Skip to content

Removals can report success while their bytes stay on storage; check each removal path against storage #2406

Open

Description

@bplatz

Problem

Three times now, a removal has reported success while the bytes it removed stayed on storage:

In each case the only thing checked was the layer that reported the removal. Nothing looked at storage itself.

Suggestion

Raised in review of #2391, which used two checks:

  1. In tests: after the removal, check the storage root for what was removed. feat(raft): compact_log removes compacted entries from disk #2391's files_holding (fluree-raft-core/tests/kv_group.rs) searches every file under the root for a sentinel value. it_drop_ledger.rs has tree / changed_since, which compare files before and after. Each removal path's tests would run a check like these.
  2. At runtime, where the store can answer: fail the removal if storage still holds what it should have removed, as compact_log does with RaftLogStore::first_retained_index.

Paths to cover:

Open questions

  • A byte search only finds a value stored as written. For files that are compressed or encrypted at rest, a test may need to decode them, or instead list the files the removal should have deleted.
  • Which paths can take a runtime check without adding a listing to every removal on remote storage.
  • Whether the test helpers live in one shared support crate or stay in each crate.

Activity

  1. added
    P3
    triage:needs-decision
    area:storage
    on Nov 15, 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:storagetriage:needs-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions