fix(prune): a plan with an unfinished backup is pruned on real storage #59

Merged
james.maes merged 1 commits from fix/prune-undated-debris into develop 2026-11-24 11:46:08 +00:00
1 Commits
Author SHA1 Message Date
James MaesandClaude Fable 5.2 f972d42403 fix(prune): a plan with an unfinished backup is pruned on real storage
maven / build (push) Successful in 2m59s
build / maven (push) Successful in 2m59s
A listing through the object-storage qbit dropped each object's
modification time, and the pruner compared those times to find backups
that never finished and are older than 7 days. With one failed run under
a plan every prune of that plan threw a NullPointerException, by hand and
on the daily schedule.

- the listing carries the modification time
- the pruner dates an unfinished backup by its run record where a storage
  lists no times, and never deletes as old what it cannot date
- the daily prune logs the stack trace of an unexpected failure

Found by a host's live check on a real bucket; the in-memory storage of
the tests supplies times. Tests: a storage that lists no times, in
BackupPrunerTest; the MinIO adapter test asserts the listing's times.
./mvnw verify: 234 tests, guardrails, help coverage and coverage pass.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 05:42:50 -06:00