plugin-barman-cloud/internal/cnpgi/common
Leonardo Cecchi 08c3f1c232
feat: return proper gRPC error codes for expected conditions (#549)
The plugin now returns a 404 status code when a requested WAL file does
not exist in the object store.

This prevents misleading log entries such as "Error while handling gRPC
request" for expected missing-file scenarios.

The `ErrEndOfWALStreamReached` now returns `OutOfRange` error.

The `ErrMissingPermissions` now returns `FailedPrecondition` error.

Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2025-09-25 10:36:48 +02:00
..
check.go fix: check for empty WAL archive during WAL archiving (#458) 2025-08-07 09:03:21 +10:00
common.go chore: remove embedded fields 2025-03-27 16:15:29 +01:00
doc.go feat(spike): restore (#29) 2024-11-06 16:01:56 +01:00
errors.go feat: return proper gRPC error codes for expected conditions (#549) 2025-09-25 10:36:48 +02:00
health.go feat: add liveness and readiness probe support (#69) 2024-12-02 14:51:32 +01:00
wal_import.go fix: ensure restore configuration points to manager wal-restore (#68) 2024-11-28 14:04:50 +01:00
wal.go feat: return proper gRPC error codes for expected conditions (#549) 2025-09-25 10:36:48 +02:00