plugin-barman-cloud/internal
Gabriel Jose Mouallem Rodrigues eefb45ca5a fix: add retry logic to updateRecoveryWindow for concurrent status updates
When backup completion and retention policy enforcement run concurrently,
both call updateRecoveryWindow to update the ObjectStore status. This can
cause "object has been modified" errors due to Kubernetes optimistic
concurrency control.

This change wraps the status update in retry.RetryOnConflict, matching
the pattern already used in setLastFailedBackupTime in the same file.
The retry logic fetches a fresh copy of the ObjectStore before each
update attempt, ensuring the resourceVersion is current.

Fixes #758

Signed-off-by: Gabriel Mouallem <gabriel@latitude.sh>
2026-02-03 15:01:30 -03:00
..
cmd feat: add pprof-server support (#538) 2025-11-26 17:54:34 +01:00
cnpgi fix: add retry logic to updateRecoveryWindow for concurrent status updates 2026-02-03 15:01:30 -03:00
controller feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00