plugin-barman-cloud/internal/cnpgi
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
..
common fix: disable management of end-of-wal file flag during backup restoration (#604) 2025-10-17 19:16:54 +02:00
instance fix: add retry logic to updateRecoveryWindow for concurrent status updates 2026-02-03 15:01:30 -03:00
metadata chore(main): release 0.11.0 (#717) 2026-01-30 16:32:12 +01:00
operator chore(deps): update golangci/golangci-lint docker tag to v2.8.0 (#721) 2026-01-14 12:20:09 +01:00
restore fix: don't log full environment variables at default log level (#589) 2025-11-21 10:15:34 +01:00