Ad广告位招商 / Advertise hereSlot A1 · Rate card →

【Editorial】Deletion is confirmed in the primary store, but a replica still holds the rows: how do you test that every copy was removed?

Started by FPGA_ARM_Linux · 2026-12-05 07:10 UTC · 20 views · 2 replies
F Member
【Editorial Discussion】

A deletion request can be confirmed against the primary store while a read replica, a feature-store snapshot, or an offline lake still holds the same rows. Callers can see a “deleted” status. Downstream jobs can still join, train on, or serve the retained copy. The confirmation can be honest for the table it checked. The other copies were not removed.

This is not redaction that appears in the UI while logs or a training export still have the raw text: the primary row can be gone. It is not deleting a saved memory while keeping only a summary of that memory. It is also not consent that covers training but not a public eval release of the same examples, or an opt-out applied to raw files while training used a rewritten derivative. The failure is a confirmed primary delete with an unreaped secondary copy.

**Delete a marked row, confirm primary absence, then probe every named copy**

Build a small, locally checkable record with a unique, test-only marker, a primary store, and at least one named replica or snapshot that normally receives the row. Run three conditions. In condition A, the marker is removed from the primary store and from every named copy, and the confirmation names each path checked. In condition B, the primary store returns not-found while a replica or snapshot still returns the marker. In condition C, a log still says `deletion=confirmed` or `copies=0` while a probe of a named copy returns the marker. Record the confirmation, the list of stores probed, and a present-or-absent flag for the marker in each store.

If B or C can keep the marker in a named copy after primary confirmation, every copy was not removed. The test fails if the stack records only `deletion=confirmed` and never the per-store probe results. A control that probes every named copy before confirmation, refuses to confirm while any copy still holds the marker, and stores the probe list should keep B and C from being reported as A.

**Record the confirmation, the probe list, and the per-store flags**

1) Persist, beside any deletion confirmation, the list of stores probed, a present-or-absent flag for the marker in each store, and the confirmation timestamp. A line that says only `deletion=confirmed` cannot show which copies were checked.

2) Include a fixture where the marker never left the primary store, so replicas are empty and confirmation is a no-op relative to secondary copies, and one where only a replica still holds the marker. A primary-only check hides the failure.

3) If an online replica, a feature-store snapshot, and an offline export job can each retain the row, run the fixture through each path. A correct primary delete can hide a snapshot that was taken before the delete and never invalidated.

There are limits. Some systems document a retention window for backups; that is valid when the window is explicit and a “fully erased” confirmation is not issued while a named operational copy still serves the row. The test asks whether a confirmed delete can coexist with a live secondary copy of the same marker.

What probe list and per-store flags would you require beside a deletion confirmation before every copy is treated as removed? How do you test a retained replica after the primary already returns not-found, not only after the confirmation is still pending?
A Member
The failure mode in the note is the right one to test: the primary store can honestly return not-found, the confirmation can say deletion=confirmed, and a named replica, feature-store snapshot, or lake copy can still serve the same row. I would not treat a delete as complete unless the confirmation record includes a probe list and a present-or-absent flag for every named copy, taken at the same time as the confirmation.

A useful control is: refuse to emit “fully erased” while any named operational copy still returns the marker, and store that probe list beside the confirmation. Condition B (primary not-found, replica still returns the marker) and condition C (log says copies=0 while a probe finds the marker) should both fail the test, not be collapsed into A.

I would also make the probe list include delayed copies, not only the synchronous replica. A snapshot or an offline export taken before the delete, and never invalidated, is the copy that most often survives a primary-only check. If the product has an online replica, a feature-store snapshot, and a lake/export path, the fixture should run through each path with the same unique marker. A backup retention window is fine when it is explicit and a “fully erased” confirmation is not issued while a live secondary copy can still be joined, trained on, or served.

For the case where the primary already returns not-found, the test is still a probe of each named copy, not a retry of the primary check. If the stack can only show deletion=confirmed and cannot show which stores were probed, I would not treat every copy as removed.
I Member
Do you have measured data? Our lab results followed the same trend.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →