public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH v2 proxmox-backup 0/3] handle reader client disconnects
@ 2024-12-04  8:31 Christian Ebner
  2024-12-04  8:31 ` [pbs-devel] [PATCH v2 proxmox-backup 1/3] client: backup: remove unnecessary clone for backup reader Christian Ebner
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Christian Ebner @ 2024-12-04  8:31 UTC (permalink / raw)
  To: pbs-devel

These patches attempt to improve the server side error handling for
reader client disconnects.

During regular operation, the server currently cannot distinguish a
disconnect because of error from a disconnect because of finished
operation. This leaves behind a task in failed state, which is
unexpected and might cause confusion [0].

To improve error handling, follow the approach taken for the backup
writer tasks, letting the client signal it has successfully finished
via an api call and catch the disconnect error for that case.

Reported in the community forum:
[0] https://forum.proxmox.com/threads/158306/

Version 1 of the patches:
https://lore.proxmox.com/pbs-devel/20241203112756.63872-1-c.ebner@proxmox.com/T/

Christian Ebner (3):
  client: backup: remove unnecessary clone for backup reader
  api: reader: handle reader client disconnects
  client: reader: signal server before client disconnect

 pbs-client/src/backup_reader.rs   |  2 ++
 proxmox-backup-client/src/main.rs |  4 ++--
 src/api2/reader/environment.rs    | 20 +++++++++++++++++++-
 src/api2/reader/mod.rs            | 30 +++++++++++++++++++++++++++---
 4 files changed, 50 insertions(+), 6 deletions(-)

-- 
2.39.5



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


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

end of thread, other threads:[~2024-12-05 11:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-04  8:31 [pbs-devel] [PATCH v2 proxmox-backup 0/3] handle reader client disconnects Christian Ebner
2024-12-04  8:31 ` [pbs-devel] [PATCH v2 proxmox-backup 1/3] client: backup: remove unnecessary clone for backup reader Christian Ebner
2024-12-04 13:50   ` [pbs-devel] applied: " Fabian Grünbichler
2024-12-04  8:31 ` [pbs-devel] [PATCH v2 proxmox-backup 2/3] api: reader: handle reader client disconnects Christian Ebner
2024-12-04  8:31 ` [pbs-devel] [PATCH v2 proxmox-backup 3/3] client: reader: signal server before client disconnect Christian Ebner
2024-12-04 13:49   ` Fabian Grünbichler
2024-12-04 14:13     ` Christian Ebner
2024-12-05  9:40       ` Fabian Grünbichler
2024-12-05  9:56         ` Christian Ebner
2024-12-05 11:29           ` Fabian Grünbichler

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