* [PATCH proxmox-backup] verify: wait for decoder pool to complete before fetching error state
@ 2026-11-09 16:54 Christian Ebner
2026-11-09 23:30 ` applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Christian Ebner @ 2026-11-09 16:54 UTC (permalink / raw)
To: pbs-devel
The decoder pool must be explicitley run to completion before
determining the error and statistics state to be propagated,
otherwise a race condition with still ongoing chunk verifictaion is
present, which can lead to setting an incorrect verification state
for a snapshot.
This was incorrectly replaced by completing the reader pool when
parallel chunk readers were introduced, it should have extended it
instead.
Fixes: b56a0c20a ("verify: move chunk loading into parallel handler")
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
src/backup/verify.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/backup/verify.rs b/src/backup/verify.rs
index aeb78c032..43bee6a36 100644
--- a/src/backup/verify.rs
+++ b/src/backup/verify.rs
@@ -221,6 +221,7 @@ impl VerifyWorker {
}
reader_pool.complete()?;
+ decoder_pool.complete()?;
let elapsed = verify_state.start_time.elapsed().as_secs_f64();
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* applied: [PATCH proxmox-backup] verify: wait for decoder pool to complete before fetching error state
2026-11-09 16:54 [PATCH proxmox-backup] verify: wait for decoder pool to complete before fetching error state Christian Ebner
@ 2026-11-09 23:30 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2026-11-09 23:30 UTC (permalink / raw)
To: pbs-devel, Christian Ebner
On Mon, 09 Nov 2026 17:54:52 +0100, Christian Ebner wrote:
> The decoder pool must be explicitley run to completion before
> determining the error and statistics state to be propagated,
> otherwise a race condition with still ongoing chunk verifictaion is
> present, which can lead to setting an incorrect verification state
> for a snapshot.
>
> This was incorrectly replaced by completing the reader pool when
> parallel chunk readers were introduced, it should have extended it
> instead.
>
> [...]
Applied, thanks!
[1/1] verify: wait for decoder pool to complete before fetching error state
commit: 87ee5ecf67f90e6a3d00131abfe5123a7e81e62f
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-09 23:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09 16:54 [PATCH proxmox-backup] verify: wait for decoder pool to complete before fetching error state Christian Ebner
2026-11-09 23:30 ` applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox