From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup v2 0/4] fix local marker cleanup for unreferenced, s3 only chunks
Date: Mon, 24 Nov 2025 10:40:14 +0100 [thread overview]
Message-ID: <20251124094018.224661-1-c.ebner@proxmox.com> (raw)
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
next reply other threads:[~2025-11-24 9:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-24 9:40 Christian Ebner [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251124094018.224661-1-c.ebner@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox