[pbs-devel] [PATCH v4 proxmox-backup 0/2] fix rare race in garbage collection
Christian Ebner
c.ebner at proxmox.com
Wed Apr 16 11:17:16 CEST 2025
Fixes a rare race in phase 1 of garbage collection, as described in
more detail in the commit message of patch 2.
This patches are intended as stop gap for the time being, until a
different approach to guarantee the presence of index files also
after pruning has been explored and implemented, as suggested by
Thomas [0].
Changes since version 3:
- Refactor open_index_reader to allow distinction between missing index
file and ignored archive type blob.
- Iterate snapshots from newest to oldest to further reduce race window
and simplify accounting logic.
[0] https://lore.proxmox.com/pbs-devel/7bac779b-e564-4f24-b58c-a4411c2a59aa@proxmox.com/
Christian Ebner (2):
garbage collection: distinguish variants for failed open index reader
garbage collection: fix rare race in chunk marking phase
pbs-datastore/src/datastore.rs | 141 ++++++++++++++++++++++-----------
1 file changed, 96 insertions(+), 45 deletions(-)
--
2.39.5
More information about the pbs-devel
mailing list