public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>,
	pbs-devel@lists.proxmox.com
Subject: Re: [PATCH proxmox-backup] api/tools: avoid showing error on missing manifest during file listing
Date: Mon, 27 Apr 2026 11:51:10 +0200	[thread overview]
Message-ID: <744e7fed-3787-4bf8-b550-0a2f5f9c5bb3@proxmox.com> (raw)
In-Reply-To: <1777281748.vnn3diw30o.astroid@yuna.none>

On 4/27/26 11:22 AM, Fabian Grünbichler wrote:
> On April 26, 2026 10:03 am, Christian Ebner wrote:
>> When listing the contents of a datastore, a missing manifest blob
>> file is currently being logged as error to the systemd journal [0].
>> The manifest missing is however normal operation in case of a still
>> ongoing backup. Therefore, refactor the code such that a missing
>> manifest is not treated as regular error by returning an Option::None
>> in the read_backup_index() helper, and handle this case accordingly.
>>
>> The actual check for the missing manifest should further be improved,
>> but requires a more in depth refactoring, the changes here acting as
>> a stop gap for not showing the benign error the time being.
> 
> how about the following instead? only log the error if the manifest file
> has existed before we tried to load and parse it? that should limit the
> log spam to
> - actually broken manifests
> - manifests which disappear right between those two calls
> 

That has one major downside though: This is a highly critical code path, 
the content listing having already been reworked quite a bit int the 
past to not be slow.

So your suggested changes would now unconditionally add more syscalls 
and IO?

I think it would be better to refactor the code in the long run, so a 
missing manifest would be treated differently from parsing and other IO 
errors, and bubbled up to the call site for logging.





  reply	other threads:[~2026-04-27  9:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-26  8:03 [PATCH proxmox-backup] api/tools: avoid showing error on missing manifest during file listing Christian Ebner
2026-04-27  9:24 ` Fabian Grünbichler
2026-04-27  9:51   ` Christian Ebner [this message]
2026-04-27 10:07     ` Fabian Grünbichler

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=744e7fed-3787-4bf8-b550-0a2f5f9c5bb3@proxmox.com \
    --to=c.ebner@proxmox.com \
    --cc=f.gruenbichler@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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal