public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup v2 0/4] fix local marker cleanup for unreferenced, s3 only chunks
@ 2025-11-24  9:40 Christian Ebner
  2025-11-24  9:40 ` [pbs-devel] [PATCH proxmox-backup v2 1/4] GC: s3: " Christian Ebner
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Christian Ebner @ 2025-11-24  9:40 UTC (permalink / raw)
  To: pbs-devel

These patches fix an issue with garbage collection on S3 backends for an
edge case where the local chunk marker is missing and the chunk not
being referenced anymore by any index file. In that case garbage
collection failed when trying to remove the missing marker from the
local datastore cache.

Fix this by adapting the phase 2 logic such that the atime is now
optional, skipping over the chunk sweep logic if not set and adding the
chunk directly for deletion.

The followup patches improve docstrings and method names to be more
telling and reduce code duplication.

Changes since version 1 (thanks @ Thomas and Fabian for feedback):
- Instead of creating the marker just for it to be deleted again, skip
  over the whole atime check logic in this case
- Fix and extend docs and method names

Christian Ebner (4):
  GC: s3: fix local marker cleanup for unreferenced, s3 only chunks
  chunk store: fix and expand the clear_chunk_expected_mark() docstring
  chunk store: clarify chunk marker helper creates marker if missing
  datastore: refactor common delete list logic into closure

 pbs-datastore/src/chunk_store.rs              | 15 +++-
 pbs-datastore/src/datastore.rs                | 88 ++++++++++++-------
 .../src/local_datastore_lru_cache.rs          | 10 ++-
 3 files changed, 77 insertions(+), 36 deletions(-)

-- 
2.47.3



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-24 12:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-24  9:40 [pbs-devel] [PATCH proxmox-backup v2 0/4] fix local marker cleanup for unreferenced, s3 only chunks Christian Ebner
2025-11-24  9:40 ` [pbs-devel] [PATCH proxmox-backup v2 1/4] GC: s3: " Christian Ebner
2025-11-24  9:40 ` [pbs-devel] [PATCH proxmox-backup v2 2/4] chunk store: fix and expand the clear_chunk_expected_mark() docstring Christian Ebner
2025-11-24  9:40 ` [pbs-devel] [PATCH proxmox-backup v2 3/4] chunk store: clarify chunk marker helper creates marker if missing Christian Ebner
2025-11-24  9:40 ` [pbs-devel] [PATCH proxmox-backup v2 4/4] datastore: refactor common delete list logic into closure Christian Ebner
2025-11-24 12:23 ` [pbs-devel] applied: [PATCH proxmox-backup v2 0/4] fix local marker cleanup for unreferenced, s3 only chunks Thomas Lamprecht
2025-11-24 12:51   ` Christian Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal